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