Нема описа

BundleInterface.php 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\HttpKernel\Bundle;
  11. use Symfony\Component\DependencyInjection\ContainerAwareInterface;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  14. /**
  15. * BundleInterface.
  16. *
  17. * @author Fabien Potencier <fabien@symfony.com>
  18. */
  19. interface BundleInterface extends ContainerAwareInterface
  20. {
  21. /**
  22. * Boots the Bundle.
  23. */
  24. public function boot();
  25. /**
  26. * Shutdowns the Bundle.
  27. */
  28. public function shutdown();
  29. /**
  30. * Builds the bundle.
  31. *
  32. * It is only ever called once when the cache is empty.
  33. */
  34. public function build(ContainerBuilder $container);
  35. /**
  36. * Returns the container extension that should be implicitly loaded.
  37. *
  38. * @return ExtensionInterface|null The default extension or null if there is none
  39. */
  40. public function getContainerExtension();
  41. /**
  42. * Returns the bundle name (the class short name).
  43. *
  44. * @return string The Bundle name
  45. */
  46. public function getName();
  47. /**
  48. * Gets the Bundle namespace.
  49. *
  50. * @return string The Bundle namespace
  51. */
  52. public function getNamespace();
  53. /**
  54. * Gets the Bundle directory path.
  55. *
  56. * The path should always be returned as a Unix path (with /).
  57. *
  58. * @return string The Bundle absolute path
  59. */
  60. public function getPath();
  61. }