NamedBundle
extends Bundle
in package
An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions.
Table of Contents
- $extension : mixed
- $name : mixed
- $path : mixed
- $namespace : mixed
- __construct() : 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.
- getParent() : string
- Returns the bundle name that this bundle overrides.
- getPath() : string
- Gets the Bundle directory path.
- registerCommands() : mixed
- Finds and registers Commands.
- 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
$extension
protected
mixed
$extension
$name
protected
mixed
$name
$path
protected
mixed
$path
$namespace
private
mixed
$namespace
Methods
__construct()
public
__construct() : mixed
Return values
mixed —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 —The container extension
getName()
Returns the bundle name (the class short name).
public
final getName() : string
Return values
string —The Bundle name
getNamespace()
Gets the Bundle namespace.
public
getNamespace() : string
Return values
string —The Bundle namespace
getParent()
Returns the bundle name that this bundle overrides.
public
getParent() : string
Return values
string —The Bundle name it overrides or null if no parent
getPath()
Gets the Bundle directory path.
public
getPath() : string
Return values
string —The Bundle absolute path
registerCommands()
Finds and registers Commands.
public
registerCommands(Application $application) : mixed
Override this method if your bundle commands do not follow the conventions:
- Commands are in the 'Command' sub-directory
- Commands extend Symfony\Component\Console\Command\Command
Parameters
- $application : Application
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