From e00ef510f7ca4d54a6942bbb8b8f5878a873994c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 29 Aug 2018 16:13:43 +0200 Subject: [PATCH] add tag aware cache service --- DependencyInjection/ChillMainExtension.php | 1 + Resources/config/services/cache.yml | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 Resources/config/services/cache.yml diff --git a/DependencyInjection/ChillMainExtension.php b/DependencyInjection/ChillMainExtension.php index c2e6f58e5..27449454b 100644 --- a/DependencyInjection/ChillMainExtension.php +++ b/DependencyInjection/ChillMainExtension.php @@ -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) diff --git a/Resources/config/services/cache.yml b/Resources/config/services/cache.yml new file mode 100644 index 000000000..de362ea30 --- /dev/null +++ b/Resources/config/services/cache.yml @@ -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'