You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-13Lines changed: 7 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ recommended.
10
10
11
11
```yaml
12
12
"require": {
13
-
"phpmob/twig-modify-bundle": "~1.0"
13
+
"phpmob/twig-modify-bundle": "~2.0"
14
14
}
15
15
```
16
16
@@ -90,23 +90,17 @@ A wrapped modifier for `\voku\helper\AntiXSS`, Thanks [voku/anti-xss](https://gi
90
90
```
91
91
92
92
## Cache
93
-
TwigModifyBundle use local cache folder by default, however you can use any cache that implemented `\Doctrine\Common\Cache\Cache` interface and then change the confiuration for your cache service:
93
+
TwigModifyBundle use local cache folder by default, however you can use any cache that implemented `\Symfony\Component\Cache\Adapter\AdapterInterface` interface and then change the confiuration for your cache service:
94
94
95
95
```yaml
96
96
phpmob_twig_modify:
97
-
cache: "my_cache_service_id"
97
+
cache_adapter: "my_cache_adapter_service_id"
98
98
```
99
99
100
-
You can also use doctrine cache.
100
+
You can also use symfony [framework-bundle cache adapter](https://symfony.com/doc/current/reference/configuration/framework.html#reference-templating-cache).
101
101
```yaml
102
-
103
-
doctrine_cache:
104
-
providers:
105
-
modifier_cache:
106
-
type: file_system
107
-
108
102
phpmob_twig_modify:
109
-
cache: "doctrine_cache.providers.modifier_cache"
103
+
cache_adapter: "cache.app"
110
104
```
111
105
112
106
Don't fogot enable `DoctrineCacheBundle` in your `AppKernel.php` - See https://symfony.com/doc/current/bundles/DoctrineCacheBundle/index.html
0 commit comments