Skip to content

Commit

Permalink
Merge pull request #177 from liip/phpcr-loader-doc
Browse files Browse the repository at this point in the history
improve phpcr loader doc
  • Loading branch information
lsmith77 committed May 3, 2013
2 parents bee756e + 4f737fc commit 8df043c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Resources/doc/data-loader/doctrine-phpcr.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ service definition:
<tag name="liip_imagine.data.loader" loader="doctrine_phpcr" />
<argument type="service" id="liip_imagine" />
<argument>%liip_imagine.formats%</argument>
<argument>%symfony_cmf_create.static_basepath%</argument>
<argument>%my_content_basepath%</argument>
<argument type="service" id="doctrine_phpcr.odm.document_manager" />
<argument>%symfony_cmf_create.image.model_class%</argument>
</service>
```

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.

Expand Down

0 comments on commit 8df043c

Please sign in to comment.