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

Commit 50c7929

Browse files
committed
Merge pull request #440 from symfony-cmf/media-doc
improve mediabundle documentation
2 parents 42ed0a9 + 73d7fd9 commit 50c7929

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

bundles/media/adapters/elfinder.rst

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ implementing the MediaBundle interfaces.
1313
Installation
1414
~~~~~~~~~~~~
1515

16-
1. *FMElfinderBundle* - Follow the installation instructions from the
17-
`FMElfinderBundle documentation`_.
18-
2. *FMElfinderBundle* - Use the MediaBundle adapter:
16+
1. Install the FMElfinderBundle according to the `FMElfinderBundle documentation`_.
17+
2. Configure the FMElfinderBundle to use the MediaBundle adapter:
1918

2019
.. configuration-block::
2120

@@ -74,8 +73,15 @@ Installation
7473
),
7574
));
7675
77-
3. *LiipImagineBundle* - When using LiipImagineBundle, add an imagine filter
78-
for the thumbnails:
76+
.. note::
77+
78+
The driver service depends on your storage layer. For now, the MediaBundle
79+
only provides a PHPCR driver. To make the above configuration work, you
80+
need to enable PHPCR either globally on ``cmf_core.persistence:phpcr`` or,
81+
if you only use the MediaBundle, directly on the bundle at
82+
``cmf_media.persistence.phpcr``.
83+
84+
3. When using the LiipImagineBundle, add an imagine filter for the thumbnails:
7985

8086
.. configuration-block::
8187

@@ -131,7 +137,7 @@ Installation
131137
),
132138
));
133139
134-
4. Test the elFinder browser by navigating to: http://localhost:8000/app_dev.php/elfinder
140+
4. Test the elFinder browser by navigating to: http://<yoursite>/app_dev.php/elfinder
135141

136142
.. _`elFinder`: http://elfinder.org
137143
.. _`FMElfinderBundle`: https://github.com/helios-ag/FMElfinderBundle

bundles/media/introduction.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,14 @@ Installation
8787
8888
return $collection;
8989
90-
3. Run the ``doctrine:phpcr:repository:init`` command, it runs all tagged
91-
:ref:`phpcr-odm-repository-initializers` including the MediaBundle
92-
initializer.
90+
3. For now, the only supported persistence layer is PHPCR. If you enabled PHPCR
91+
on the CoreBundle, you need to do nothing here. If you do not have the
92+
CMF CoreBundle in your project, you need to configure
93+
``cmf_media.persistence.phpcr.enabled: true``.
94+
95+
4. For PHPCR, run the ``doctrine:phpcr:repository:init`` command, to have the
96+
base paths initialized, using the
97+
:ref:`repository initializers <phpcr-odm-repository-initializers>`.
9398

9499
Interfaces
95100
----------

0 commit comments

Comments
 (0)