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
25
25
public function process (ContainerBuilder $ container )
26
26
{
27
27
if (true === $ container ->getParameter ('fos_http_cache.compiler_pass.tag_annotations ' )
28
- && !$ container -> has ( ' sensio_framework_extra.controller.listener ' )
28
+ && !$ this -> hasControllerListener ( $ container )
29
29
) {
30
30
throw new \RuntimeException (
31
31
'Tag support requires SensioFrameworkExtraBundle’s ControllerListener for the annotations. '
32
32
.'Please install sensio/framework-extra-bundle and add it to your AppKernel. '
33
33
);
34
34
}
35
35
}
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
+ }
36
42
}
You can’t perform that action at this time.
0 commit comments