Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #150 from tiagojsag/docs
Browse files Browse the repository at this point in the history
Installation instructions
  • Loading branch information
rande committed Aug 12, 2013
2 parents eb44324 + 28d1da8 commit 3a65e3c
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 39 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Check out the documentation on [Resources/doc](https://github.com/sonata-project
**Warning**: documentation files are not rendering correctly in Github (reStructuredText format)
and some content might be broken or hidden, make sure to read raw files.

**Google Groups**: For questions and proposals you can post on this google groups
**Google Groups**: For questions and proposals you can post on these google groups

* [Sonata Users](https://groups.google.com/group/sonata-users): Only for user questions
* [Sonata Devs](https://groups.google.com/group/sonata-devs): Only for devs
* [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
21 changes: 21 additions & 0 deletions Resources/doc/index.rst
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

70 changes: 34 additions & 36 deletions Resources/doc/reference/installation.rst
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

0 comments on commit 3a65e3c

Please sign in to comment.