public function Bundle::build

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, ...

Parameters

ContainerBuilder $container A ContainerBuilder instance:

Overrides BundleInterface::build

17 methods override Bundle::build()
BanBundle::build in drupal/core/modules/ban/lib/Drupal/ban/BanBundle.php
Overrides Symfony\Component\HttpKernel\Bundle\Bundle::build().
BundleTestBundle::build in drupal/core/modules/system/tests/modules/bundle_test/lib/Drupal/bundle_test/BundleTestBundle.php
Builds the bundle.
CoreBundle::build in drupal/core/lib/Drupal/Core/CoreBundle.php
Implements \Symfony\Component\HttpKernel\Bundle\BundleInterface::build().
FieldBundle::build in drupal/core/modules/field/lib/Drupal/field/FieldBundle.php
Overrides Symfony\Component\HttpKernel\Bundle\Bundle::build().
FieldSqlStorageBundle::build in drupal/core/modules/field/modules/field_sql_storage/lib/Drupal/field_sql_storage/FieldSqlStorageBundle.php
Builds the bundle.

... See full list

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Bundle/Bundle.php, line 58

Class

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

Namespace

Symfony\Component\HttpKernel\Bundle

Code

public function build(ContainerBuilder $container) {
}