@@ -57,7 +57,6 @@ Now add the following to the document to fulfill the contract::
5757 // src/Acme/BasicCmsBundle/Document/Page.php
5858
5959 // ...
60-
6160 class Page implements RouteReferrersReadInterface, NodeInterface
6261 {
6362 // ...
@@ -211,7 +210,7 @@ configuration:
211210 <service
212211 id =" acme.basic_cms.menu_provider"
213212 class =" Symfony\Cmf\Bundle\MenuBundle\Provider\PhpcrMenuProvider" >
214- <argument type =" service" id =" cmf_menu.factory " />
213+ <argument type =" service" id =" cmf_menu.loader.node " />
215214 <argument type =" service" id =" doctrine_phpcr" />
216215 <argument >/cms/pages</argument >
217216 <call method =" setRequest" >
@@ -238,7 +237,7 @@ configuration:
238237 'acme.basic_cms.menu_provider',
239238 'Symfony\Cmf\Bundle\MenuBundle\Provider\PhpcrMenuProvider'
240239 )
241- ->addArgument(new Reference('cmf_menu.factory '))
240+ ->addArgument(new Reference('cmf_menu.loader.node '))
242241 ->addArgument(new Reference('doctrine_phpcr'))
243242 ->addArgument('/cms/pages')
244243 ->addMethodCall('setRequest', array(
@@ -251,7 +250,11 @@ configuration:
251250 ->addTag('knp_menu.provider')
252251 ;
253252
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:
255258
256259.. configuration-block ::
257260
0 commit comments