Bundle
abstract class Bundle implements BundleInterface
An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions and Console commands.
Traits
Properties
protected ContainerInterface | $container | from ContainerAwareTrait | |
protected | $name | ||
protected | $extension | ||
protected | $path |
Methods
Boots the Bundle.
Shutdowns the Bundle.
Returns the bundle's container extension.
Gets the Bundle namespace.
Gets the Bundle directory path.
Returns the bundle name (the class short name).
Returns the bundle's container extension class.
Creates the bundle's container extension.
Details
in ContainerAwareTrait at line 26
setContainer(ContainerInterface $container = null)
at line 38
boot()
Boots the Bundle.
at line 45
shutdown()
Shutdowns the Bundle.
at line 55
build(ContainerBuilder $container)
Builds the bundle.
It is only ever called once when the cache is empty.
at line 66
ExtensionInterface|null
getContainerExtension()
Returns the bundle's container extension.
at line 98
string
getNamespace()
Gets the Bundle namespace.
at line 110
string
getPath()
Gets the Bundle directory path.
The path should always be returned as a Unix path (with /).
at line 125
final string
getName()
Returns the bundle name (the class short name).
at line 134
registerCommands(Application $application)
at line 143
protected string
getContainerExtensionClass()
Returns the bundle's container extension class.
at line 155
protected ExtensionInterface|null
createContainerExtension()
Creates the bundle's container extension.