This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed
Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ is the following configuration:
2828
2929 .. code-block :: yaml
3030
31+ # app/config/config.yml
3132 cmf_tree_browser :
3233 persistence :
3334 phpcr :
@@ -36,6 +37,7 @@ is the following configuration:
3637
3738 .. code-block :: xml
3839
40+ <!-- app/config/config.xml -->
3941 <?xml version =" 1.0" charset =" UTF-8" ?>
4042 <container xmlns =" http://symfony.com/schema/dic/services" >
4143
@@ -52,14 +54,15 @@ is the following configuration:
5254
5355 .. code-block :: php
5456
55- $container->loadFromExtension('cmf_tree_browser', array(
56- 'persistence' => array(
57- 'phpcr' => array(
57+ // app/config/config.php
58+ $container->loadFromExtension('cmf_tree_browser', [
59+ 'persistence' => [
60+ 'phpcr' => [
5861 'enabled' => false,
5962 'session_name' => 'default',
60- ) ,
61- ) ,
62- ) );
63+ ] ,
64+ ] ,
65+ ] );
6366
6467
6568 ``enabled ``
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ Both the CmfTreeBrowserBundle and FOSJsRoutingBundle_ must be registered in the
2727 // ...
2828 public function registerBundles()
2929 {
30- $bundles = array(
30+ $bundles = [
3131 // ...
3232 new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
3333 new Symfony\Cmf\Bundle\TreeBrowserBundle\CmfTreeBrowserBundle(),
34- ) ;
34+ ] ;
3535 // ...
3636
3737 return $bundles;
@@ -165,10 +165,10 @@ from the admin tree:
165165 .. code-block :: html+php
166166
167167 <?php
168- $view['actions']->render('sonata.admin.doctrine_phpcr.tree_controller:treeAction', array(
168+ $view['actions']->render('sonata.admin.doctrine_phpcr.tree_controller:treeAction', [
169169 'root' => $sitePath . '/menu',
170170 'selected' => $menuNodeId,
171- ) )?>
171+ ] )?>
172172 <script type="text/javascript">
173173 $(document).ready(function() {
174174 $('#tree').bind("before.jstree", function (e, data) {
You can’t perform that action at this time.
0 commit comments