File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/AppBundle/EventListener Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace AppBundle \EventListener ;
13
13
14
- use Symfony \Component \HttpKernel \HttpKernelInterface ;
15
14
use Symfony \Component \HttpKernel \Event \FilterControllerEvent ;
16
15
use AppBundle \Twig \SourceCodeExtension ;
17
16
@@ -41,7 +40,7 @@ public function registerCurrentController(FilterControllerEvent $event)
41
40
// this check is needed because in Symfony a request can perform any
42
41
// number of sub-requests. See
43
42
// http://symfony.com/doc/current/components/http_kernel/introduction.html#sub-requests
44
- if (HttpKernelInterface:: MASTER_REQUEST === $ event ->getRequestType ()) {
43
+ if ($ event ->isMasterRequest ()) {
45
44
$ this ->twigExtension ->setController ($ event ->getController ());
46
45
}
47
46
}
You can’t perform that action at this time.
0 commit comments