Skip to content

Commit 0274f4b

Browse files
committed
EventListeners were added twice
1 parent f49abe3 commit 0274f4b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

AsyncKernel.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
use React\Promise\PromiseInterface;
2323
use React\Promise\RejectedPromise;
2424
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
25-
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
2625
use Symfony\Component\DependencyInjection\ContainerBuilder;
27-
use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass;
2826
use Symfony\Component\HttpFoundation\Request;
2927
use Symfony\Component\HttpKernel\Kernel;
3028

@@ -68,16 +66,6 @@ public function handleAsync(Request $request): PromiseInterface
6866
*/
6967
public function build(ContainerBuilder $container)
7068
{
71-
/*
72-
* Register new kernel events
73-
*/
74-
$container
75-
->addCompilerPass((new RegisterListenersPass())
76-
->setHotPathEvents([
77-
AsyncKernelEvents::PRELOAD,
78-
]), PassConfig::TYPE_BEFORE_REMOVING
79-
);
80-
8169
$container->addCompilerPass(new EventLoopCompilerPass());
8270
$container->addCompilerPass(new EventDispatcherCompilerPass($this->isDebug()));
8371
$container->addCompilerPass(new FilesystemCompilerPass());

0 commit comments

Comments
 (0)