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

Commit eb62860

Browse files
committed
Merge branch '1.1' into 1.2
Conflicts: _exts
2 parents e9e27f5 + 61c5076 commit eb62860

File tree

9 files changed

+130
-21
lines changed

9 files changed

+130
-21
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "_exts"]
2-
path = _exts
3-
url = http://github.com/fabpot/sphinx-php

bundles/block/introduction.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,29 @@ Installation
1818
You can install this bundle `with composer`_ using the
1919
`symfony-cmf/block-bundle`_ package.
2020

21+
As the bundle is using the `SonataBlockBundle`_, you need to instantiate some
22+
sonata bundles in addition to the CmfBlockBundle::
23+
24+
// app/AppKernel.php
25+
26+
// ...
27+
class AppKernel extends Kernel
28+
{
29+
public function registerBundles()
30+
{
31+
$bundles = array(
32+
// ...
33+
new Sonata\BlockBundle\SonataBlockBundle(),
34+
new Sonata\CoreBundle\SonataCoreBundle(),
35+
new Symfony\Cmf\Bundle\BlockBundle\CmfBlockBundle(),
36+
);
37+
38+
// ...
39+
}
40+
41+
// ...
42+
}
43+
2144
.. _bundle-block-configuration:
2245

2346
Usage

bundles/media/introduction.rst

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ persisted using Doctrine PHPCR-ODM, Doctrine ORM or something else.
4040
Installation
4141
------------
4242

43-
1. You can install the bundle via Composer (``symfony-cmf/media-bundle`` on
44-
`Packagist`_).
43+
You can install this bundle `with composer`_ using the
44+
`symfony-cmf/media-bundle`_ package.
4545

46-
2. When using the file and image controller for downloading, uploading and
47-
displaying, add the following lines to the end of your routing file:
46+
Configuration
47+
-------------
48+
When using the file and image controller for downloading, uploading and
49+
displaying, add the following lines to your routing file:
4850

4951
.. configuration-block::
5052

@@ -88,14 +90,14 @@ Installation
8890
8991
return $collection;
9092
91-
3. For now, the only supported persistence layer is PHPCR. If you enabled PHPCR
92-
on the CoreBundle, you need to do nothing here. If you do not have the
93-
CMF CoreBundle in your project, you need to configure
94-
``cmf_media.persistence.phpcr.enabled: true``.
93+
For now, the only supported persistence layer is PHPCR. If you enabled PHPCR
94+
on the CoreBundle, you need to do nothing here. If you do not have the
95+
CmfCoreBundle in your project, you need to configure
96+
``cmf_media.persistence.phpcr.enabled: true``.
9597

96-
4. For PHPCR, run the ``doctrine:phpcr:repository:init`` command, to have the
97-
base paths initialized, using the
98-
:ref:`repository initializers <phpcr-odm-repository-initializers>`.
98+
Then run the ``doctrine:phpcr:repository:init`` command, to have the base paths
99+
initialized, using the
100+
:ref:`repository initializers <phpcr-odm-repository-initializers>`.
99101

100102
Interfaces
101103
----------
@@ -266,8 +268,9 @@ and Symfony bundles:
266268
* :doc:`adapters/elfinder`
267269
* :doc:`adapters/gaufrette`
268270

271+
.. _`symfony-cmf/media-bundle`: https://packagist.org/packages/symfony-cmf/media-bundle
272+
.. _`with composer`: http://getcomposer.org
269273
.. _`MediaBundle`: https://github.com/symfony-cmf/MediaBundle#readme
270-
.. _`Packagist`: https://packagist.org/packages/symfony-cmf/media-bundle
271274
.. _`KnpLabs/Gaufrette`: https://github.com/KnpLabs/Gaufrette
272275
.. _`phpcr/phpcr-utils`: https://github.com/phpcr/phpcr-utils
273276
.. _`jms/serializer-bundle`: https://github.com/schmittjoh/JMSSerializerBundle

bundles/menu/introduction.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,28 @@ Installation
2626
You can install this bundle `with composer`_ using the
2727
`symfony-cmf/menu-bundle`_ package.
2828

29+
As the bundle is using the `KnpMenuBundle`_, you need to instantiate that
30+
bundles in addition to the CmfMenuBundle::
31+
32+
// app/AppKernel.php
33+
34+
// ...
35+
class AppKernel extends Kernel
36+
{
37+
public function registerBundles()
38+
{
39+
$bundles = array(
40+
// ...
41+
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
42+
new Symfony\Cmf\Bundle\MenuBundle\CmfMenuBundle(),
43+
);
44+
45+
// ...
46+
}
47+
48+
// ...
49+
}
50+
2951
Creating a Simple Persistent Menu
3052
---------------------------------
3153

bundles/phpcr_odm/introduction.rst

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,27 @@ If you want to use PHPCR-ODM, you additionally need to require
5252
...
5353
}
5454
55-
Besides ``Doctrine\Bundle\PHPCRBundle\DoctrinePHPCRBundle`` you also need to
56-
instantiate the ``Doctrine\Bundle\DoctrineBundle\DoctrineBundle`` in your app
57-
kernel.
55+
Besides the ``DoctrinePHPCRBundle`` you also need to instantiate the base
56+
``DoctrineBundle`` in your kernel::
57+
58+
// app/AppKernel.php
59+
60+
// ...
61+
class AppKernel extends Kernel
62+
{
63+
public function registerBundles()
64+
{
65+
$bundles = array(
66+
// ...
67+
new Doctrine\Bundle\PHPCRBundle\DoctrinePHPCRBundle(),
68+
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
69+
);
70+
71+
// ...
72+
}
73+
74+
// ...
75+
}
5876

5977
Configuration
6078
-------------

bundles/routing_auto/introduction.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,28 @@ Installation
1818
You can install this bundle `with composer`_ using the
1919
`symfony-cmf/routing-auto-bundle`_ package.
2020

21+
This bundle is based on the :doc:`../routing/index`, and you need to
22+
instantiate both bundles::
23+
24+
// app/AppKernel.php
25+
26+
// ...
27+
class AppKernel extends Kernel
28+
{
29+
public function registerBundles()
30+
{
31+
$bundles = array(
32+
// ...
33+
new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
34+
new Symfony\Cmf\Bundle\RoutingAutoBundle\CmfRoutingAutoBundle(),
35+
);
36+
37+
// ...
38+
}
39+
40+
// ...
41+
}
42+
2143
Features
2244
--------
2345

bundles/seo/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Installation
1010
You can install this bundle `with composer`_ using the
1111
``symfony-cmf/seo-content-bundle`` package on `Packagist`_.
1212

13-
Both the CmfSeoBundle and SonataSeoBundle must be registered in the
14-
``AppKernel``::
13+
This bundle extends the SonataSeoBundle which must be registered in the
14+
kernel as well::
1515

1616
// app/appKernel.php
1717

bundles/simple_cms/introduction.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,30 @@ Installation
3030
You can install this bundle `with composer`_ using the
3131
``symfony-cmf/simple-cms-bundle`` package on `Packagist`_.
3232

33+
This bundle integrates the routing, content and menu bundles of the CMF. All of
34+
them and their dependencies need to be instantiated in the kernel::
35+
36+
// app/AppKernel.php
37+
38+
// ...
39+
class AppKernel extends Kernel
40+
{
41+
public function registerBundles()
42+
{
43+
$bundles = array(
44+
// ...
45+
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
46+
new Symfony\Cmf\Bundle\MenuBundle\CmfMenuBundle(),
47+
new Symfony\Cmf\Bundle\ContentBundle\CmfContentBundle(),
48+
new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
49+
);
50+
51+
// ...
52+
}
53+
54+
// ...
55+
}
56+
3357
Sections
3458
--------
3559

tutorial/getting-started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Now you can generate the bundle in which you will write most of your code:
8989

9090
.. code-block:: bash
9191
92-
$ php app/console generate:bundle --namespace=Acme/BasicCmsBundle --dir=src --no-interaction
92+
$ php app/console generate:bundle --namespace=Acme/BasicCmsBundle --dir=src --format=yml --no-interaction
9393
9494
The Documents
9595
.............

0 commit comments

Comments
 (0)