@@ -57,7 +57,6 @@ Now add the following to the document to fulfill the contract::
57
57
// src/Acme/BasicCmsBundle/Document/Page.php
58
58
59
59
// ...
60
-
61
60
class Page implements RouteReferrersReadInterface, NodeInterface
62
61
{
63
62
// ...
@@ -211,7 +210,7 @@ configuration:
211
210
<service
212
211
id =" acme.basic_cms.menu_provider"
213
212
class =" Symfony\Cmf\Bundle\MenuBundle\Provider\PhpcrMenuProvider" >
214
- <argument type =" service" id =" cmf_menu.factory " />
213
+ <argument type =" service" id =" cmf_menu.loader.node " />
215
214
<argument type =" service" id =" doctrine_phpcr" />
216
215
<argument >/cms/pages</argument >
217
216
<call method =" setRequest" >
@@ -238,7 +237,7 @@ configuration:
238
237
'acme.basic_cms.menu_provider',
239
238
'Symfony\Cmf\Bundle\MenuBundle\Provider\PhpcrMenuProvider'
240
239
)
241
- ->addArgument(new Reference('cmf_menu.factory '))
240
+ ->addArgument(new Reference('cmf_menu.loader.node '))
242
241
->addArgument(new Reference('doctrine_phpcr'))
243
242
->addArgument('/cms/pages')
244
243
->addMethodCall('setRequest', array(
@@ -251,7 +250,11 @@ configuration:
251
250
->addTag('knp_menu.provider')
252
251
;
253
252
254
- and enable the Twig rendering functionality of the KnpMenu bundle:
253
+ .. versionadded :: 2.0
254
+ The first argument of the ``PhpcrMenuProvider `` class was changed in CmfMenuBundle 2.0.
255
+ You had to inject the ``cmf_menu.factory `` service prior to version 2.0.
256
+
257
+ and enable the Twig rendering functionality of the KnpMenuBundle:
255
258
256
259
.. configuration-block ::
257
260
0 commit comments