Symfony\Component\HttpKernel\Bundle\Bundle
An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions and Console commands.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Bundle
extends ContainerAware
implements
BundleInterface
{
- // members
- protected $name;
- protected $reflected;
- protected $extension;
- // Inherited members from ContainerAware
- protected ContainerInterface $container;
- // methods
- public void boot()
- public void shutdown()
- public void build()
- public ExtensionInterface|null getContainerExtension()
- public string getNamespace()
- public string getPath()
- public string getParent()
- public final string getName()
- public void registerCommands()
- // Inherited methods from ContainerAware
- public void setContainer()
Hierarchy
Extends
Extended by
- Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle
- Symfony\Bundle\MonologBundle\MonologBundle
- Symfony\Bundle\FrameworkBundle\FrameworkBundle
- Symfony\Bundle\TwigBundle\TwigBundle
- Symfony\Bundle\WebProfilerBundle\WebProfilerBundle
- Symfony\Bundle\SecurityBundle\SecurityBundle
- Symfony\Bundle\AsseticBundle\AsseticBundle
- Doctrine\Bundle\DoctrineBundle\DoctrineBundle
- Sensio\Bundle\DistributionBundle\SensioDistributionBundle
- Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle
- Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle
Implements
Members
protected
- $container — Symfony\Component\DependencyInjection\ContainerInterface
- $extension
- $name
- $reflected
Methods
public
- boot() — Boots the Bundle.
- build() — Builds the bundle.
- getContainerExtension() — Returns the bundle's container extension.
- getName() — Returns the bundle name (the class short name).
- getNamespace() — Gets the Bundle namespace.
- getParent() — Returns the bundle parent name.
- getPath() — Gets the Bundle directory path.
- registerCommands() — Finds and registers Commands.
- shutdown() — Shutdowns the Bundle.
Inherited from Symfony\Component\DependencyInjection\ContainerAware
public
- setContainer() — Sets the Container associated with this Controller.