PHP Class Symfony\Component\HttpKernel\Bundle\Bundle

Inheritance: extends Symfony\Component\DependencyInjection\ContainerAware, implements Symfony\Component\HttpKernel\Bundle\BundleInterface
Afficher le fichier Open project: symfony/symfony Class Usage Examples

Protected Properties

Свойство Type Description
$extension
$name
$path

Méthodes publiques

Méthode Description
boot ( ) Boots the Bundle.
build ( ContainerBuilder $container ) Builds the bundle.
getContainerExtension ( ) : Symfony\Component\DependencyInjection\Extension\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 parent name.
getPath ( ) : string Gets the Bundle directory path.
registerCommands ( Application $application ) Finds and registers Commands.
shutdown ( ) Shutdowns the Bundle.

Méthodes protégées

Méthode Description
createContainerExtension ( ) : Symfony\Component\DependencyInjection\Extension\ExtensionInterface | null Creates the bundle's container extension.
getContainerExtensionClass ( ) : string Returns the bundle's container extension class.

Private Methods

Méthode Description
parseClassName ( )

Method Details

boot() public méthode

Boots the Bundle.
public boot ( )

build() public méthode

It is only ever called once when the cache is empty. This method can be overridden to register compilation passes, other extensions, ...
public build ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder A ContainerBuilder instance

createContainerExtension() protected méthode

Creates the bundle's container extension.
protected createContainerExtension ( ) : Symfony\Component\DependencyInjection\Extension\ExtensionInterface | null
Résultat Symfony\Component\DependencyInjection\Extension\ExtensionInterface | null

getContainerExtension() public méthode

Returns the bundle's container extension.
public getContainerExtension ( ) : Symfony\Component\DependencyInjection\Extension\ExtensionInterface | null
Résultat Symfony\Component\DependencyInjection\Extension\ExtensionInterface | null The container extension

getContainerExtensionClass() protected méthode

Returns the bundle's container extension class.
protected getContainerExtensionClass ( ) : string
Résultat string

getName() final public méthode

Returns the bundle name (the class short name).
final public getName ( ) : string
Résultat string The Bundle name

getNamespace() public méthode

Gets the Bundle namespace.
public getNamespace ( ) : string
Résultat string The Bundle namespace

getParent() public méthode

Returns the bundle parent name.
public getParent ( ) : string
Résultat string The Bundle parent name it overrides or null if no parent

getPath() public méthode

Gets the Bundle directory path.
public getPath ( ) : string
Résultat string The Bundle absolute path

registerCommands() public méthode

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
public registerCommands ( Application $application )
$application Symfony\Component\Console\Application An Application instance

shutdown() public méthode

Shutdowns the Bundle.
public shutdown ( )

Property Details

$extension protected_oe property

protected $extension

$name protected_oe property

protected $name

$path protected_oe property

protected $path