FrameworkBundle
class FrameworkBundle extends Bundle
Bundle.
Traits
ContainerAware trait.
Methods
boot()
Boots the Bundle.
ExtensionInterface|null
getContainerExtension()
Returns the bundle's container extension.
from Bundle
Details
in ContainerAwareTrait at line line 31
setContainer(ContainerInterface $container = null)
Sets the container.
at line line 49
boot()
Boots the Bundle.
in Bundle at line line 45
shutdown()
Shutdowns the Bundle.
at line line 66
build(ContainerBuilder $container)
Builds the bundle.
It is only ever called once when the cache is empty.
This method can be overridden to register compilation passes, other extensions, ...
in Bundle at line line 70
ExtensionInterface|null
getContainerExtension()
Returns the bundle's container extension.
in Bundle at line line 107
string
getNamespace()
Gets the Bundle namespace.
in Bundle at line line 119
string
getPath()
Gets the Bundle directory path.
in Bundle at line line 134
string
getParent()
Returns the bundle parent name.
in Bundle at line line 143
final string
getName()
Returns the bundle name (the class short name).
in Bundle at line line 165
registerCommands(Application $application)
Finds and registers Commands.
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