Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

[tree-browser] change doc to best practices #799

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions bundles/tree_browser/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand Down
8 changes: 4 additions & 4 deletions bundles/tree_browser/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -165,10 +165,10 @@ from the admin tree:
.. code-block:: html+php

<?php
$view['actions']->render('sonata.admin.doctrine_phpcr.tree_controller:treeAction', array(
$view['actions']->render('sonata.admin.doctrine_phpcr.tree_controller:treeAction', [
'root' => $sitePath . '/menu',
'selected' => $menuNodeId,
))?>
])?>
<script type="text/javascript">
$(document).ready(function() {
$('#tree').bind("before.jstree", function (e, data) {
Expand Down