File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 16
16
use Symfony \Cmf \Component \Routing \Event \RouterGenerateEvent ;
17
17
use Symfony \Cmf \Component \Routing \Event \RouterMatchEvent ;
18
18
use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
19
+ use Symfony \Component \EventDispatcher \LegacyEventDispatcherProxy ;
19
20
use Symfony \Component \HttpFoundation \Request ;
20
21
use Symfony \Component \Routing \Exception \MethodNotAllowedException ;
21
22
use Symfony \Component \Routing \Exception \ResourceNotFoundException ;
@@ -107,6 +108,10 @@ public function __construct(RequestContext $context,
107
108
$ this ->uriFilterRegexp = $ uriFilterRegexp ;
108
109
$ this ->provider = $ provider ;
109
110
111
+ if (class_exists (LegacyEventDispatcherProxy::class)) {
112
+ $ this ->eventDispatcher = LegacyEventDispatcherProxy::decorate ($ eventDispatcher );
113
+ }
114
+
110
115
$ this ->generator ->setContext ($ context );
111
116
}
112
117
You can’t perform that action at this time.
0 commit comments