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:
28
28
29
29
.. code-block :: yaml
30
30
31
+ # app/config/config.yml
31
32
cmf_tree_browser :
32
33
persistence :
33
34
phpcr :
@@ -36,6 +37,7 @@ is the following configuration:
36
37
37
38
.. code-block :: xml
38
39
40
+ <!-- app/config/config.xml -->
39
41
<?xml version =" 1.0" charset =" UTF-8" ?>
40
42
<container xmlns =" http://symfony.com/schema/dic/services" >
41
43
@@ -52,14 +54,15 @@ is the following configuration:
52
54
53
55
.. code-block :: php
54
56
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' => [
58
61
'enabled' => false,
59
62
'session_name' => 'default',
60
- ) ,
61
- ) ,
62
- ) );
63
+ ] ,
64
+ ] ,
65
+ ] );
63
66
64
67
65
68
``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
27
27
// ...
28
28
public function registerBundles()
29
29
{
30
- $bundles = array(
30
+ $bundles = [
31
31
// ...
32
32
new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
33
33
new Symfony\Cmf\Bundle\TreeBrowserBundle\CmfTreeBrowserBundle(),
34
- ) ;
34
+ ] ;
35
35
// ...
36
36
37
37
return $bundles;
@@ -165,10 +165,10 @@ from the admin tree:
165
165
.. code-block :: html+php
166
166
167
167
<?php
168
- $view['actions']->render('sonata.admin.doctrine_phpcr.tree_controller:treeAction', array(
168
+ $view['actions']->render('sonata.admin.doctrine_phpcr.tree_controller:treeAction', [
169
169
'root' => $sitePath . '/menu',
170
170
'selected' => $menuNodeId,
171
- ) )?>
171
+ ] )?>
172
172
<script type="text/javascript">
173
173
$(document).ready(function() {
174
174
$('#tree').bind("before.jstree", function (e, data) {
You can’t perform that action at this time.
0 commit comments