[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Bundle/ -> Bundle.php (summary)

An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions and Console commands.

Author: Fabien Potencier <fabien@symfony.com>
File Size: 192 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

  boot()
  shutdown()
  build()
  getContainerExtension()
  getNamespace()
  getPath()
  getParent()
  getName()
  registerCommands()

Functions
Functions that are not part of a class:

boot()   X-Ref
Boots the Bundle.


shutdown()   X-Ref
Shutdowns the Bundle.


build(ContainerBuilder $container)   X-Ref
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, ...

param: ContainerBuilder $container A ContainerBuilder instance

getContainerExtension()   X-Ref
Returns the bundle's container extension.

return: ExtensionInterface|null The container extension

getNamespace()   X-Ref
Gets the Bundle namespace.

return: string The Bundle namespace

getPath()   X-Ref
Gets the Bundle directory path.

return: string The Bundle absolute path

getParent()   X-Ref
Returns the bundle parent name.

return: string The Bundle parent name it overrides or null if no parent

getName()   X-Ref
Returns the bundle name (the class short name).

return: string The Bundle name

registerCommands(Application $application)   X-Ref
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

param: Application $application An Application instance



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1