Skip to content

Commit 592f9f0

Browse files
committed
Merge pull request #50 from php-cache/use_tagging
Make sure to copy use_tagging.
2 parents 3634d9c + 0cf686c commit 592f9f0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Command/CacheFlushCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function configure()
3737
$this->setDescription('Flushes the given cache');
3838
$this->addArgument('type', InputArgument::OPTIONAL, sprintf('Which type of cache do you want to clear? Valid types are: %s', implode(', ', self::VALID_TYPES)));
3939
$this->addArgument('service', InputArgument::OPTIONAL, 'If using type "provider" you must give a service id for the cache you want to clear.');
40-
$this->setHelp(<<<EOD
40+
$this->setHelp(<<<'EOD'
4141
4242
Types and their description
4343
all Clear all types of caches

src/DependencyInjection/Compiler/DoctrineCompilerPass.php

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ protected function enableDoctrineSupport(array $config)
7171
continue;
7272
}
7373

74+
// Copy the tagging setting to the $typeConfig
75+
$typeConfig['use_tagging'] = $config['use_tagging'];
76+
7477
// Doctrine can't talk to a PSR-6 cache, so we need a bridge
7578
$bridgeServiceId = sprintf('cache.service.doctrine.%s.%s.bridge', $cacheType, $type);
7679
$this->container->register($bridgeServiceId, DoctrineCacheBridge::class)

0 commit comments

Comments
 (0)