This repository has been archived by the owner on Jul 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from tiagojsag/docs
Installation instructions
- Loading branch information
Showing
3 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Doctrine PHPCR Admin Bundle | ||
=========================== | ||
|
||
This bundle integrates the SonataAdminBundle with the Doctrine PHPCR project | ||
|
||
**Google Groups**: For questions and proposals you can post on these google groups | ||
|
||
* `Sonata Users <https://groups.google.com/group/sonata-users>`_: For questions on how to use Sonata bundles on your project | ||
* `Sonata Devs <https://groups.google.com/group/sonata-devs>`_: For questions regarding the development of Sonata bundles | ||
|
||
Reference Guide | ||
--------------- | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:numbered: | ||
|
||
reference/installation | ||
reference/configuration | ||
reference/filter_field_definition | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,52 @@ | ||
Installation | ||
============ | ||
|
||
First install the Sonata Admin Bundle | ||
SonataDoctrinePhpcrAdminBundle is part of a set of bundles aimed at abstracting | ||
storage connectivity for SonataAdminBundle. As such, SonataDoctrinePhpcrAdminBundle | ||
depends on SonataAdminBundle, and will not work without it. | ||
|
||
With cmf-sandbox | ||
---------------- | ||
.. note:: | ||
These installation instructions are meant to be used only as part of SonataAdminBundle's | ||
installation process, which is documented `here <http://sonata-project.org/bundles/admin/master/doc/reference/installation.html>`_. | ||
|
||
This bundle is under development. Currently, the best way to try it and see what is going on is to install a [cmf-sandbox](https://github.com/symfony-cmf/cmf-sandbox/). | ||
|
||
Follow the README of the sandbox for how to install it and load the fixtures to see some content. | ||
|
||
|
||
Without cmf-sandbox | ||
Download the bundle | ||
------------------- | ||
|
||
The PHPCR Admin Bundle depends on PHPCR-ODM and on the SonataAdminBundle which in turn depends on SonatajQueryBundle. | ||
For PHPCR-ODM, follow the instructions at [DoctrinePHPCRBundle](https://github.com/doctrine/DoctrinePHPCRBundle). | ||
Use composer: | ||
|
||
.. code-block:: bash | ||
Then for the admin bundle, add the following lines to the file ``deps``: | ||
php composer.phar require sonata-project/doctrine-phpcr-admin-bundle | ||
[SonatajQueryBundle] | ||
git=http://github.com/sonata-project/SonatajQueryBundle.git | ||
target=/bundles/Sonata/jQueryBundle | ||
You'll be asked to type in a version constraint. 'dev-master' will get you the latest, bleeding edge version. Check `packagist <https://packagist.org/packages/sonata-project/doctrine-phpcr-admin-bundle>`_ | ||
for stable and legacy versions: | ||
|
||
[SonataAdminBundle] | ||
git=https://github.com/sonata-project/SonataAdminBundle.git | ||
target=/bundles/Sonata/AdminBundle | ||
.. code-block:: bash | ||
[SonataDoctrinePHPCRAdminBundle] | ||
git=http://github.com/sonata-project/SonataDoctrinePhpcrAdminBundle.git | ||
target=/bundles/Sonata/DoctrinePHPCRAdminBundle | ||
Please provide a version constraint for the sonata-project/doctrine-phpcr-admin-bundle requirement: dev-master | ||
and run:: | ||
bin/vendors install | ||
Enable the bundle | ||
----------------- | ||
|
||
Next, be sure to enable the bundles in your autoload.php and AppKernel.php | ||
files: | ||
Next, be sure to enable the bundle in your AppKernel.php file: | ||
|
||
.. code-block:: php | ||
<?php | ||
// app/AppKernel.php | ||
public function registerBundles() | ||
{ | ||
return array( | ||
// ... | ||
new Sonata\jQueryBundle\SonatajQueryBundle(), | ||
new Sonata\AdminBundle\SonataAdminBundle(), | ||
new Sonata\DoctrinePHPCRAdminBundle\SonataDoctrinePHPCRAdminBundle(), | ||
// ... | ||
); | ||
} | ||
<?php | ||
// app/AppKernel.php | ||
public function registerBundles() | ||
{ | ||
return array( | ||
// ... | ||
// set up basic sonata requirements | ||
// ... | ||
new Sonata\DoctrinePhpcrAdminBundle\SonataDoctrinePhpcrAdminBundle(), | ||
// ... | ||
); | ||
} | ||
.. note:: | ||
Don't forget that, as part of `SonataAdminBundle's installation instructions <http://sonata-project.org/bundles/admin/master/doc/reference/installation.html>`_, | ||
you need to enable additional bundles on AppKernel.php |