TwigBundle
class TwigBundle extends Bundle
Bundle.
Methods
setContainer(ContainerInterface $container = null)
Sets the Container associated with this Controller.
from ContainerAware
ExtensionInterface|null
getContainerExtension()
Returns the bundle's container extension.
from Bundle
Details
in ContainerAware at line line 37
setContainer(ContainerInterface $container = null)
Sets the Container associated with this Controller.
in Bundle at line line 38
boot()
Boots the Bundle.
in Bundle at line line 45
shutdown()
Shutdowns the Bundle.
at line line 28
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 72
ExtensionInterface|null
getContainerExtension()
Returns the bundle's container extension.
in Bundle at line line 110
string
getNamespace()
Gets the Bundle namespace.
in Bundle at line line 126
string
getPath()
Gets the Bundle directory path.
in Bundle at line line 142
string
getParent()
Returns the bundle parent name.
in Bundle at line line 154
final string
getName()
Returns the bundle name (the class short name).
in Bundle at line line 176
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