Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / devel / webprofiler / src / Compiler / EventPass.php
diff --git a/web/modules/contrib/devel/webprofiler/src/Compiler/EventPass.php b/web/modules/contrib/devel/webprofiler/src/Compiler/EventPass.php
deleted file mode 100644 (file)
index 5f009af..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace Drupal\webprofiler\Compiler;
-
-use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\DependencyInjection\Reference;
-
-/**
- * Class EventPass.
- */
-class EventPass implements CompilerPassInterface {
-
-  /**
-   * {@inheritdoc}
-   */
-  public function process(ContainerBuilder $container) {
-    $definition = $container->findDefinition('http_kernel.basic');
-    $definition->replaceArgument(1, new Reference('webprofiler.debug.controller_resolver'));
-
-    // Replace the regular event_dispatcher service with the debug one.
-    $definition = $container->findDefinition('event_dispatcher');
-    $definition->setPublic(FALSE);
-    $container->setDefinition('webprofiler.debug.event_dispatcher.default', $definition);
-    $container->register('event_dispatcher', 'Drupal\webprofiler\TraceableEventDispatcher')
-      ->addArgument(new Reference('webprofiler.debug.event_dispatcher.default'))
-      ->addArgument(new Reference('stopwatch'))
-      ->setProperty('_serviceId', 'event_dispatcher');
-  }
-}