From 3949c862580b20e1983d6ba045b549b0ea65f3bc Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 26 Jan 2016 19:10:42 +0100 Subject: [PATCH 1/2] Make sure to copy use_tagging. --- src/DependencyInjection/Compiler/DoctrineCompilerPass.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/DependencyInjection/Compiler/DoctrineCompilerPass.php b/src/DependencyInjection/Compiler/DoctrineCompilerPass.php index 0e2ac7f..8af299d 100644 --- a/src/DependencyInjection/Compiler/DoctrineCompilerPass.php +++ b/src/DependencyInjection/Compiler/DoctrineCompilerPass.php @@ -71,6 +71,9 @@ protected function enableDoctrineSupport(array $config) continue; } + // Copy the tagging setting to the $typeConfig + $typeConfig['use_tagging'] = $config['use_tagging']; + // Doctrine can't talk to a PSR-6 cache, so we need a bridge $bridgeServiceId = sprintf('cache.service.doctrine.%s.%s.bridge', $cacheType, $type); $this->container->register($bridgeServiceId, DoctrineCacheBridge::class) From 0cf686c3b0103b9c7dd2cd67befefd4c247ebe1d Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 26 Jan 2016 19:16:42 +0100 Subject: [PATCH 2/2] style fix --- src/Command/CacheFlushCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/CacheFlushCommand.php b/src/Command/CacheFlushCommand.php index f522020..63fb5e7 100644 --- a/src/Command/CacheFlushCommand.php +++ b/src/Command/CacheFlushCommand.php @@ -37,7 +37,7 @@ protected function configure() $this->setDescription('Flushes the given cache'); $this->addArgument('type', InputArgument::OPTIONAL, sprintf('Which type of cache do you want to clear? Valid types are: %s', implode(', ', self::VALID_TYPES))); $this->addArgument('service', InputArgument::OPTIONAL, 'If using type "provider" you must give a service id for the cache you want to clear.'); - $this->setHelp(<<setHelp(<<<'EOD' Types and their description all Clear all types of caches