Bundle
abstract class Bundle implements BundleInterface
An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions and Console commands.
Traits
ContainerAware trait.
Properties
protected ContainerInterface | $container | from ContainerAwareTrait | |
protected | $name | ||
protected | $extension | ||
protected | $path |
Methods
boot()
Boots the Bundle.
shutdown()
Shutdowns the Bundle.
ExtensionInterface|null
getContainerExtension()
Returns the bundle's container extension.
string
getNamespace()
Gets the Bundle namespace.
string
getPath()
Gets the Bundle directory path.
string
getName()
Returns the bundle name (the class short name).
string
getContainerExtensionClass()
Returns the bundle's container extension class.
ExtensionInterface|null
createContainerExtension()
Creates the bundle's container extension.
Details
build(ContainerBuilder $container)
Builds the bundle.
It is only ever called once when the cache is empty.
string
getPath()
Gets the Bundle directory path.
The path should always be returned as a Unix path (with /).
protected ExtensionInterface|null
createContainerExtension()
Creates the bundle's container extension.