Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 5bf165e

Browse files
committed
Ported DoctrineCacheBundle to master
1 parent 53dd958 commit 5bf165e

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

bundles/phpcr_odm.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ command.
179179
option. For Doctrine PHPCR commands, this parameter is not needed as you
180180
configured the connection to use.
181181

182+
To use the cache, install and configure the `DoctrineCacheBundle`_. Then
183+
uncomment the cache meta and nodes settings.
184+
182185
PHPCR Session with Midgard2
183186
"""""""""""""""""""""""""""
184187

@@ -860,3 +863,4 @@ Dumping nodes under ``/cms/simple`` including their properties:
860863
.. _`Doctrine data-fixtures`: https://github.com/doctrine/data-fixtures
861864
.. _`documentation of the DoctrineFixturesBundle`: http://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html
862865
.. _`SQL2 queries`: http://www.h2database.com/jcr/grammar.html
866+
.. _`DoctrineCacheBundle`: https://github.com/doctrine/DoctrineCacheBundle/

cookbook/editions/cmf_sandbox.rst

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ After this, your should follow the steps in `Preparing the PHPCR repository`_.
213213
Doctrine caching
214214
................
215215

216-
Optionally, to improve performance and enable the meta data, you can install
217-
LiipDoctrineCacheBundle by typing the following command:
216+
Optionally, to improve performance, you can install DoctrineCacheBundle by
217+
typing the following command:
218218

219219
.. code-block:: bash
220220
221-
$ php composer.phar require liip/doctrine-cache-bundle:dev-master
221+
$ php composer.phar require doctrine/cache-bundle:1.0.*
222222
223223
And adding the following entry to your ``app/AppKernel.php``::
224224

@@ -229,33 +229,32 @@ And adding the following entry to your ``app/AppKernel.php``::
229229
{
230230
$bundles = array(
231231
// ...
232-
new Liip\DoctrineCacheBundle\LiipDoctrineCacheBundle(),
232+
new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
233233
// ...
234234
);
235235
}
236236

237237
Finally, uncomment the caches settings in the ``phpcr.yml`` as well as the
238-
``liip_doctrine_cache`` settings in ``config.yml``.
238+
``doctrine_cache`` settings in ``config.yml``.
239239

240240
.. code-block:: yaml
241241
242242
# app/config/phpcr.yml
243243
caches:
244-
meta: liip_doctrine_cache.ns.meta
245-
nodes: liip_doctrine_cache.ns.nodes
244+
meta: doctrine_cache.providers.phpcr_meta
245+
nodes: doctrine_cache.providers.phpcr_nodes
246246
247247
.. code-block:: yaml
248248
249249
# app/config/config.yml
250250
251251
# ...
252252
253-
# jackalope doctrine caching
254-
liip_doctrine_cache:
255-
namespaces:
256-
meta:
253+
doctrine_cache:
254+
providers:
255+
phpcr_meta:
257256
type: file_system
258-
nodes:
257+
phpcr_nodes:
259258
type: file_system
260259
261260
Midgard2 PHPCR Provider

0 commit comments

Comments
 (0)