diff --git a/bundles/tree_browser/configuration.rst b/bundles/tree_browser/configuration.rst index eccbabcd..5f42b724 100644 --- a/bundles/tree_browser/configuration.rst +++ b/bundles/tree_browser/configuration.rst @@ -52,14 +52,14 @@ is the following configuration: .. code-block:: php - $container->loadFromExtension('cmf_tree_browser', array( - 'persistence' => array( - 'phpcr' => array( + $container->loadFromExtension('cmf_tree_browser', [ + 'persistence' => [ + 'phpcr' => [ 'enabled' => false, 'session_name' => 'default', - ), - ), - )); + ], + ], + ]); ``enabled`` diff --git a/bundles/tree_browser/introduction.rst b/bundles/tree_browser/introduction.rst index d98a3111..c6c50661 100644 --- a/bundles/tree_browser/introduction.rst +++ b/bundles/tree_browser/introduction.rst @@ -27,11 +27,11 @@ Both the CmfTreeBrowserBundle and FOSJsRoutingBundle_ must be registered in the // ... public function registerBundles() { - $bundles = array( + $bundles = [ // ... new FOS\JsRoutingBundle\FOSJsRoutingBundle(), new Symfony\Cmf\Bundle\TreeBrowserBundle\CmfTreeBrowserBundle(), - ); + ]; // ... return $bundles; @@ -165,10 +165,10 @@ from the admin tree: .. code-block:: html+php render('sonata.admin.doctrine_phpcr.tree_controller:treeAction', array( + $view['actions']->render('sonata.admin.doctrine_phpcr.tree_controller:treeAction', [ 'root' => $sitePath . '/menu', 'selected' => $menuNodeId, - ))?> + ])?>