public function UrlAlterTestBundle::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 Bundle::build

File

drupal/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/UrlAlterTestBundle.php, line 23
Contains Drupal\url_alter_test\UrlAlterTestBundle.

Class

UrlAlterTestBundle
Test bundle class for url_alter_test.

Namespace

Drupal\url_alter_test

Code

public function build(ContainerBuilder $container) {
  $container
    ->register('url_alter_test.path_subscriber', 'Drupal\\url_alter_test\\PathSubscriber')
    ->addTag('event_subscriber');
}