add tag aware cache service

This commit is contained in:
Julien Fastré 2018-08-29 16:13:43 +02:00
parent a68fb730a6
commit e00ef510f7
2 changed files with 8 additions and 0 deletions

View File

@ -113,6 +113,7 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
$loader->load('services/redis.yml');
$loader->load('services/command.yml');
$loader->load('services/phonenumber.yml');
$loader->load('services/cache.yml');
}
public function getConfiguration(array $config, ContainerBuilder $container)

View File

@ -0,0 +1,7 @@
services:
chill_main.tag_aware_cache:
class: Symfony\Component\Cache\Adapter\TagAwareAdapter
arguments:
- '@cache.user_data'
- '@cache.tags'
Symfony\Component\Cache\Adapter\TagAwareAdapter: '@chill_main.tag_aware_cache'