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'