BundleInterface
extends
ContainerAwareInterface
in
BundleInterface.
Tags
Table of Contents
- boot() : mixed
- Boots the Bundle.
- build() : mixed
- Builds the bundle.
- getContainerExtension() : ExtensionInterface|null
- Returns the container extension that should be implicitly loaded.
- getName() : string
- Returns the bundle name (the class short name).
- getNamespace() : string
- Gets the Bundle namespace.
- getPath() : string
- Gets the Bundle directory path.
- setContainer() : mixed
- Sets the container.
- shutdown() : mixed
- Shutdowns the Bundle.
Methods
boot()
Boots the Bundle.
public
boot() : mixed
Return values
mixed —build()
Builds the bundle.
public
build(ContainerBuilder $container) : mixed
It is only ever called once when the cache is empty.
Parameters
- $container : ContainerBuilder
Return values
mixed —getContainerExtension()
Returns the container extension that should be implicitly loaded.
public
getContainerExtension() : ExtensionInterface|null
Return values
ExtensionInterface|null —getName()
Returns the bundle name (the class short name).
public
getName() : string
Return values
string —getNamespace()
Gets the Bundle namespace.
public
getNamespace() : string
Return values
string —getPath()
Gets the Bundle directory path.
public
getPath() : string
The path should always be returned as a Unix path (with /).
Return values
string —setContainer()
Sets the container.
public
setContainer([ContainerInterface|null $container = null ]) : mixed
Parameters
- $container : ContainerInterface|null = null
Return values
mixed —shutdown()
Shutdowns the Bundle.
public
shutdown() : mixed