summaryrefslogtreecommitdiffstats
path: root/core/modules/locale/lib/Drupal/locale/LocaleBundle.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/locale/lib/Drupal/locale/LocaleBundle.php')
-rw-r--r--core/modules/locale/lib/Drupal/locale/LocaleBundle.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/core/modules/locale/lib/Drupal/locale/LocaleBundle.php b/core/modules/locale/lib/Drupal/locale/LocaleBundle.php
new file mode 100644
index 0000000..4bd8dc0
--- /dev/null
+++ b/core/modules/locale/lib/Drupal/locale/LocaleBundle.php
@@ -0,0 +1,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');
+ }
+
+}