Skip to content
Browse files

deprecate the phpcr loader as CmfMediaBundle provides a better one now.

  • Loading branch information...
1 parent a67d638 commit 8a58d95a355f8d1c2c4e45f34976c32b46f0d282 @dbu dbu committed Sep 17, 2013
@@ -0,0 +1,6 @@
+* **2013-09-17**: [PHPCR loader] DoctrinePHPCRLoader is now deprecated, as the
+ CmfMediaBundle provides a more reliable loader that is already provided as a
+ service. See
lolautruche added a note Nov 12, 2014

This changelog probably doesn't belong here :)

Liip member
dbu added a note Nov 12, 2014

why not? we deprecated a loader provided in this bundle, saying to rather use the loader provided in CmfMediaBundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 Imagine/Data/Loader/DoctrinePHPCRLoader.php
@@ -6,6 +6,10 @@
use Imagine\Image\ImagineInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
+ * @deprecated This class is replaced by the loader of the CmfMediaBundle
+ * and will be removed in LiipImagineBundle 1.0
+ */
class DoctrinePHPCRLoader extends FileSystemLoader
29 Resources/doc/data-loader/
@@ -1,29 +0,0 @@
-# DoctrinePHPCRLoader
-Load images from PHPCR ODM
-This loader works the same as the GridFS loader with some minor changes in the
-service definition:
-``` xml
-<service id="" class="Liip\ImagineBundle\Imagine\Data\Loader\DoctrinePHPCRLoader">
- <tag name="" loader="doctrine_phpcr" />
- <argument type="service" id="liip_imagine" />
- <argument>%liip_imagine.formats%</argument>
- <argument>%my_content_basepath%</argument>
- <argument type="service" id="doctrine_phpcr.odm.document_manager" />
- <argument>%symfony_cmf_create.image.model_class%</argument>
-Instead of liip_imagine.formats you can of course also provide a custom set of
-image formats to support.
-``my_content_basepath`` is used to limit what parts of your repository are
-exposed by imagine. This must be a path without trailing slash. For example
-``"/cms/content`` or if you want to expose everything, ``""`` (but *not* ``"/"``).
-Note there is an AbstractDoctrineLoader. It is quite easy to extend this abstract class
-to create a new Doctrine loader for the ORM or another ODM.
-- [Back to data loaders](../
-- [Back to the index](../
7 Resources/doc/
@@ -1,9 +1,14 @@
# Built-In DataLoader
-* [DoctrinePHPCR](data-loader/
* [MongoDB GridFS](data-loader/
* [Stream](data-loader/
+# Other data loaders
+* [Doctrine PHPCR-ODM](
+ You can include the CmfMediaBundle alone if you just want to use the images
+ but no other CMF features.
# Custom image loaders
The ImagineBundle allows you to add your custom image loader classes. The only

0 comments on commit 8a58d95

Please sign in to comment.
Something went wrong with that request. Please try again.