summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-09-10 15:00:06 +0100
committerAlex Pott2015-09-10 15:00:06 +0100
commitf99f051cb888ebc10fb7b88efce7ba5e6dea7bc2 (patch)
treed6905414210aa7a373e08d77ec1130392813ae7e
parentd997d39712acff8421d78bc714593a0253d4062c (diff)
Issue #2546782 by joshi.rohit100, zniki.ru, dawehner: Rename \Drupal\Core\DependencyInjection\Compiler\RegisterKernelListenersPass to RegisterEventSubscribersPass
-rw-r--r--core/lib/Drupal/Core/CoreServiceProvider.php4
-rw-r--r--core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php (renamed from core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterKernelListenersPass.php)7
2 files changed, 7 insertions, 4 deletions
diff --git a/core/lib/Drupal/Core/CoreServiceProvider.php b/core/lib/Drupal/Core/CoreServiceProvider.php
index 7b83fc2..101c3bc 100644
--- a/core/lib/Drupal/Core/CoreServiceProvider.php
+++ b/core/lib/Drupal/Core/CoreServiceProvider.php
@@ -24,7 +24,7 @@ use Drupal\Core\DependencyInjection\ServiceProviderInterface;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\Compiler\ModifyServiceDefinitionsPass;
use Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass;
-use Drupal\Core\DependencyInjection\Compiler\RegisterKernelListenersPass;
+use Drupal\Core\DependencyInjection\Compiler\RegisterEventSubscribersPass;
use Drupal\Core\DependencyInjection\Compiler\RegisterAccessChecksPass;
use Drupal\Core\DependencyInjection\Compiler\RegisterServicesForDestructionPass;
use Drupal\Core\Plugin\PluginManagerPass;
@@ -82,7 +82,7 @@ class CoreServiceProvider implements ServiceProviderInterface {
$container->addCompilerPass(new TwigExtensionPass());
// Add a compiler pass for registering event subscribers.
- $container->addCompilerPass(new RegisterKernelListenersPass(), PassConfig::TYPE_AFTER_REMOVING);
+ $container->addCompilerPass(new RegisterEventSubscribersPass(), PassConfig::TYPE_AFTER_REMOVING);
$container->addCompilerPass(new RegisterAccessChecksPass());
$container->addCompilerPass(new RegisterLazyRouteEnhancers());
diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterKernelListenersPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php
index cb48a5f..1adfb9e 100644
--- a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterKernelListenersPass.php
+++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php
@@ -2,7 +2,7 @@
/**
* @file
- * Contains \Drupal\Core\DependencyInjection\Compiler\RegisterKernelListenersPass.
+ * Contains \Drupal\Core\DependencyInjection\Compiler\RegisterEventSubscribersPass.
*/
namespace Drupal\Core\DependencyInjection\Compiler;
@@ -10,7 +10,10 @@ namespace Drupal\Core\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
-class RegisterKernelListenersPass implements CompilerPassInterface {
+/**
+ * Registers all event subscribers to the event dispatcher.
+ */
+class RegisterEventSubscribersPass implements CompilerPassInterface {
public function process(ContainerBuilder $container) {
if (!$container->hasDefinition('event_dispatcher')) {
return;