@@ -118,8 +118,7 @@ The Cache component comes with a series of adapters pre-configured:
118
118
logic to dynamically select the best possible storage based on your system
119
119
(either PHP files or APCu).
120
120
121
- Some of these adapters could be configured via shortcuts. Using these shortcuts
122
- will create pools with service IDs that follow the pattern ``cache.[type] ``.
121
+ Some of these adapters could be configured via shortcuts.
123
122
124
123
.. configuration-block ::
125
124
@@ -130,15 +129,10 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
130
129
cache :
131
130
directory : ' %kernel.cache_dir%/pools' # Only used with cache.adapter.filesystem
132
131
133
- # service: cache.doctrine_dbal
134
132
default_doctrine_dbal_provider : ' doctrine.dbal.default_connection'
135
- # service: cache.psr6
136
133
default_psr6_provider : ' app.my_psr6_service'
137
- # service: cache.redis
138
134
default_redis_provider : ' redis://localhost'
139
- # service: cache.memcached
140
135
default_memcached_provider : ' memcached://localhost'
141
- # service: cache.pdo
142
136
default_pdo_provider : ' pgsql:host=localhost'
143
137
144
138
.. code-block :: xml
@@ -154,13 +148,6 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
154
148
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"
155
149
>
156
150
<framework : config >
157
- <!--
158
- default-doctrine-dbal-provider: Service: cache.doctrine_dbal
159
- default-psr6-provider: Service: cache.psr6
160
- default-redis-provider: Service: cache.redis
161
- default-memcached-provider: Service: cache.memcached
162
- default-pdo-provider: Service: cache.pdo
163
- -->
164
151
<!-- "directory" attribute is only used with cache.adapter.filesystem -->
165
152
<framework : cache directory =" %kernel.cache_dir%/pools"
166
153
default-doctrine-dbal-provider =" doctrine.dbal.default_connection"
@@ -181,15 +168,11 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
181
168
$framework->cache()
182
169
// Only used with cache.adapter.filesystem
183
170
->directory('%kernel.cache_dir%/pools')
184
- // Service: cache.doctrine_dbal
171
+
185
172
->defaultDoctrineDbalProvider('doctrine.dbal.default_connection')
186
- // Service: cache.psr6
187
173
->defaultPsr6Provider('app.my_psr6_service')
188
- // Service: cache.redis
189
174
->defaultRedisProvider('redis://localhost')
190
- // Service: cache.memcached
191
175
->defaultMemcachedProvider('memcached://localhost')
192
- // Service: cache.pdo
193
176
->defaultPdoProvider('pgsql:host=localhost')
194
177
;
195
178
};
0 commit comments