summaryrefslogtreecommitdiffstats
path: root/core/modules/locale/lib/Drupal/locale/LocaleBundle.php
blob: 4bd8dc07bce5eaeffae20a1a64121e3a7ae613bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

/**
 * @file
 * Contains \Drupal\locale\LocaleBundle.
 */

namespace Drupal\locale;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
 * Registers locale module's services to the container.
 */
class LocaleBundle extends Bundle {

  /**
   * Implements \Symfony\Component\HttpKernel\Bundle\BundleInterface::build().
   */
  public function build(ContainerBuilder $container) {
    $container->register('locale_config_subscriber', 'Drupal\locale\LocaleConfigSubscriber')
      ->addArgument(new Reference('language_manager'))
      ->addTag('event_subscriber');
  }

}