interface BundleInterface
BundleInterface.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- interface \Symfony\Component\HttpKernel\Bundle\BundleInterface
Expanded class hierarchy of BundleInterface
All classes that implement BundleInterface
2 files declare their use of BundleInterface
- Kernel.php in vendor/
symfony/ http-kernel/ Kernel.php - KernelInterface.php in vendor/
symfony/ http-kernel/ KernelInterface.php
File
-
vendor/
symfony/ http-kernel/ Bundle/ BundleInterface.php, line 23
Namespace
Symfony\Component\HttpKernel\BundleView source
interface BundleInterface {
/**
* Boots the Bundle.
*
* @return void
*/
public function boot();
/**
* Shutdowns the Bundle.
*
* @return void
*/
public function shutdown();
/**
* Builds the bundle.
*
* It is only ever called once when the cache is empty.
*
* @return void
*/
public function build(ContainerBuilder $container);
/**
* Returns the container extension that should be implicitly loaded.
*/
public function getContainerExtension() : ?ExtensionInterface;
/**
* Returns the bundle name (the class short name).
*/
public function getName() : string;
/**
* Gets the Bundle namespace.
*/
public function getNamespace() : string;
/**
* Gets the Bundle directory path.
*
* The path should always be returned as a Unix path (with /).
*/
public function getPath() : string;
public function setContainer(?ContainerInterface $container) : void;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
BundleInterface::boot | public | function | Boots the Bundle. | 1 |
BundleInterface::build | public | function | Builds the bundle. | 1 |
BundleInterface::getContainerExtension | public | function | Returns the container extension that should be implicitly loaded. | 1 |
BundleInterface::getName | public | function | Returns the bundle name (the class short name). | 1 |
BundleInterface::getNamespace | public | function | Gets the Bundle namespace. | 1 |
BundleInterface::getPath | public | function | Gets the Bundle directory path. | 1 |
BundleInterface::setContainer | public | function | 1 | |
BundleInterface::shutdown | public | function | Shutdowns the Bundle. | 1 |