File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
DependencyInjection/Compiler Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,18 @@ class TagSubscriberPass implements CompilerPassInterface
2525 public function process (ContainerBuilder $ container )
2626 {
2727 if (true === $ container ->getParameter ('fos_http_cache.compiler_pass.tag_annotations ' )
28- && !$ container -> has ( ' sensio_framework_extra.controller.listener ' )
28+ && !$ this -> hasControllerListener ( $ container )
2929 ) {
3030 throw new \RuntimeException (
3131 'Tag support requires SensioFrameworkExtraBundle’s ControllerListener for the annotations. '
3232 .'Please install sensio/framework-extra-bundle and add it to your AppKernel. '
3333 );
3434 }
3535 }
36+
37+ private function hasControllerListener (ContainerBuilder $ container )
38+ {
39+ return $ container ->has ('sensio_framework_extra.controller.listener ' ) ||
40+ $ container ->has ('Sensio \\Bundle \\FrameworkExtraBundle \\EventListener \\ControllerListener ' );
41+ }
3642}
You can’t perform that action at this time.
0 commit comments