Skip to content

Commit bcdecd7

Browse files
authored
Merge pull request #395 from emodric/patch-1
Support FQCN service names for Sensio Framework Extra Bundle
2 parents 9b57deb + 63e2f3b commit bcdecd7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DependencyInjection/Compiler/TagSubscriberPass.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)