mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
add tag aware cache service
This commit is contained in:
parent
a68fb730a6
commit
e00ef510f7
@ -113,6 +113,7 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
|
|||||||
$loader->load('services/redis.yml');
|
$loader->load('services/redis.yml');
|
||||||
$loader->load('services/command.yml');
|
$loader->load('services/command.yml');
|
||||||
$loader->load('services/phonenumber.yml');
|
$loader->load('services/phonenumber.yml');
|
||||||
|
$loader->load('services/cache.yml');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getConfiguration(array $config, ContainerBuilder $container)
|
public function getConfiguration(array $config, ContainerBuilder $container)
|
||||||
|
7
Resources/config/services/cache.yml
Normal file
7
Resources/config/services/cache.yml
Normal 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'
|
Loading…
x
Reference in New Issue
Block a user