Bundle
in package
implements
BundleInterface
Uses
ContainerAwareTrait
An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions.
Tags
Interfaces, Classes and Traits
- BundleInterface
- BundleInterface.
Table of Contents
- $container : ContainerInterface|null
- $extension : mixed
- $name : mixed
- $path : mixed
- $namespace : mixed
- boot() : mixed
- Boots the Bundle.
- build() : mixed
- Builds the bundle.
- getContainerExtension() : ExtensionInterface|null
- Returns the bundle's container extension.
- getName() : string
- Returns the bundle name (the class short name).
- getNamespace() : string
- Gets the Bundle namespace.
- getPath() : string
- Gets the Bundle directory path.
- registerCommands() : mixed
- setContainer() : mixed
- shutdown() : mixed
- Shutdowns the Bundle.
- createContainerExtension() : ExtensionInterface|null
- Creates the bundle's container extension.
- getContainerExtensionClass() : string
- Returns the bundle's container extension class.
- parseClassName() : mixed
Properties
$container
protected
ContainerInterface|null
$container
$extension
protected
mixed
$extension
$name
protected
mixed
$name
$path
protected
mixed
$path
$namespace
private
mixed
$namespace
Methods
boot()
Boots the Bundle.
public
boot() : mixed
Return values
mixed —build()
Builds the bundle.
public
build(ContainerBuilder $container) : mixed
This method can be overridden to register compilation passes, other extensions, ...
Parameters
- $container : ContainerBuilder
Return values
mixed —getContainerExtension()
Returns the bundle's container extension.
public
getContainerExtension() : ExtensionInterface|null
Tags
Return values
ExtensionInterface|null —getName()
Returns the bundle name (the class short name).
public
final 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
Return values
string —registerCommands()
public
registerCommands(Application $application) : mixed
Parameters
- $application : Application
Return values
mixed —setContainer()
public
setContainer([ContainerInterface|null $container = null ]) : mixed
Parameters
- $container : ContainerInterface|null = null
Return values
mixed —shutdown()
Shutdowns the Bundle.
public
shutdown() : mixed
Return values
mixed —createContainerExtension()
Creates the bundle's container extension.
protected
createContainerExtension() : ExtensionInterface|null
Return values
ExtensionInterface|null —getContainerExtensionClass()
Returns the bundle's container extension class.
protected
getContainerExtensionClass() : string
Return values
string —parseClassName()
private
parseClassName() : mixed