Skip to content

Commit bc04ac9

Browse files
committed
Merge pull request #159 from FriendsOfSymfony/tag-annotations
do not enforce sensio extra bundle with default configuration
2 parents 798873a + 27d53c8 commit bc04ac9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

DependencyInjection/Compiler/TagSubscriberPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class TagSubscriberPass implements CompilerPassInterface
2424
*/
2525
public function process(ContainerBuilder $container)
2626
{
27-
if ($container->has('fos_http_cache.event_listener.tag')
27+
if (true === $container->getParameter('fos_http_cache.compiler_pass.tag_annotations')
2828
&& !$container->has('sensio_framework_extra.controller.listener')
2929
) {
3030
throw new \RuntimeException(

DependencyInjection/FOSHttpCacheExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public function load(array $configs, ContainerBuilder $container)
6565
$loader->load('cache_manager.xml');
6666
}
6767

68+
$container->setParameter($this->getAlias() . '.compiler_pass.tag_annotations', $config['tags']['enabled']);
6869
if ($config['tags']['enabled']) {
6970
// true or auto
7071
$loader->load('tag_listener.xml');

0 commit comments

Comments
 (0)