Skip to content

Commit ea6fb2c

Browse files
authored
Update DynamicRouter.php (#264)
Avoid deprecation message in Symfony 5.2
1 parent fcd37f9 commit ea6fb2c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/DynamicRouter.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Cmf\Component\Routing\Event\RouterGenerateEvent;
1717
use Symfony\Cmf\Component\Routing\Event\RouterMatchEvent;
1818
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
19-
use Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy;
2019
use Symfony\Component\HttpFoundation\Request;
2120
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
2221
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
@@ -106,10 +105,6 @@ public function __construct(
106105
$this->uriFilterRegexp = $uriFilterRegexp;
107106
$this->provider = $provider;
108107

109-
if (class_exists(LegacyEventDispatcherProxy::class)) {
110-
$this->eventDispatcher = LegacyEventDispatcherProxy::decorate($eventDispatcher);
111-
}
112-
113108
$this->generator->setContext($context);
114109
}
115110

0 commit comments

Comments
 (0)