Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: symfony-cmf/simple-cms-bundle
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.0
Choose a base ref
...
head repository: symfony-cmf/simple-cms-bundle
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on May 26, 2014

  1. Use config defined custom page while initialing homepage

    Jérémy Jourdin committed May 26, 2014
    Copy the full SHA
    4a62341 View commit details
  2. Merge pull request #116 from JJK801/fix-initializer

    Use config defined custom page while initialing homepage
    dbu committed May 26, 2014
    Copy the full SHA
    0998ace View commit details
  3. Copy the full SHA
    7b9ab80 View commit details
  4. update changelog

    dbu committed May 26, 2014
    Copy the full SHA
    e4b169f View commit details
  5. Merge branch 'patch-1'

    dbu committed May 26, 2014
    Copy the full SHA
    dec1bac View commit details

Commits on Jun 12, 2014

  1. start 1.1 maintenance branch

    dbu committed Jun 12, 2014
    Copy the full SHA
    03a129c View commit details

Commits on Aug 21, 2014

  1. prepare release

    lsmith77 committed Aug 21, 2014
    Copy the full SHA
    82d4802 View commit details
  2. update to PSR-4

    xabbuh authored and lsmith77 committed Aug 21, 2014
    Copy the full SHA
    893ca0e View commit details
  3. updated the changelog

    xabbuh authored and lsmith77 committed Aug 21, 2014
    Copy the full SHA
    e925782 View commit details
  4. start work on 1.2 version

    dbu authored and lsmith77 committed Aug 21, 2014
    Copy the full SHA
    6f8ef48 View commit details
  5. extend dependencies

    dbu authored and lsmith77 committed Aug 21, 2014
    Copy the full SHA
    439739b View commit details
  6. Add MenuOptionsInterface

    For compatibility with MenuNodeHtmlAttributeExtension from the
    menuBundle
    mkoosej authored and lsmith77 committed Aug 21, 2014
    Copy the full SHA
    558b1e4 View commit details
  7. Add MenuOptionsInterface

    mkoosej authored and lsmith77 committed Aug 21, 2014
    Copy the full SHA
    e90a9ff View commit details
  8. Copy the full SHA
    8af375a View commit details
  9. update menu-bundle version

    mkoosej authored and lsmith77 committed Aug 21, 2014
    Copy the full SHA
    3f5e448 View commit details
  10. Reduced Travis builds

    wouterj authored and lsmith77 committed Aug 21, 2014
    Copy the full SHA
    f998090 View commit details
  11. Added HHVM to travis

    wouterj authored and lsmith77 committed Aug 21, 2014
    Copy the full SHA
    0d40f1d View commit details
  12. Copy the full SHA
    fd52419 View commit details
  13. prepare release

    lsmith77 committed Aug 21, 2014
    Copy the full SHA
    d79f064 View commit details
  14. Copy the full SHA
    af1d4c8 View commit details
  15. fix hhvm build

    lsmith77 committed Aug 21, 2014
    Copy the full SHA
    cec683c View commit details

Commits on Aug 28, 2014

  1. relax deps

    lsmith77 committed Aug 28, 2014
    Copy the full SHA
    1429ed4 View commit details

Commits on Oct 12, 2014

  1. Copy the full SHA
    09d84d6 View commit details

Commits on Oct 21, 2014

  1. symfony 3 is coming

    dbu committed Oct 21, 2014
    Copy the full SHA
    3fe2c0c View commit details
  2. Merge pull request #127 from symfony-cmf/symfony-2

    symfony 3 is coming
    dbu committed Oct 21, 2014
    Copy the full SHA
    11ba3d0 View commit details
  3. fix version constraint

    dbu committed Oct 21, 2014
    Copy the full SHA
    a45ce13 View commit details

Commits on Nov 20, 2014

  1. Copy the full SHA
    b619d03 View commit details

Commits on Jan 23, 2015

  1. Copy the full SHA
    f746584 View commit details
  2. bump dev version

    lsmith77 committed Jan 23, 2015
    Copy the full SHA
    63620db View commit details

Commits on Jan 26, 2015

  1. Merge pull request #134 from symfony-cmf/travis_cache

    Use new Travis docker based env and caching
    lsmith77 committed Jan 26, 2015
    Copy the full SHA
    76f2a70 View commit details
  2. Use latest versions in the test matrix

    wouterj authored and lsmith77 committed Jan 26, 2015
    Copy the full SHA
    c956436 View commit details
  3. Merge pull request #133 from symfony-cmf/travis_config

    Use latest versions in the test matrix
    lsmith77 committed Jan 26, 2015
    Copy the full SHA
    de681cb View commit details

Commits on Apr 10, 2015

  1. Fix Typo NS declaration, Fatal local tests

    Running locally suite tests result in a fatal.
    ```php
    PHP Fatal error:  Cannot redeclare class Symfony\Cmf\Bundle\RoutingBundle\Tests\Unit\DependencyInjection\XmlSchemaTest in /path/project/vendor/symfony-cmf/simple-cms-bundle/Tests/Unit/DependencyInjection/XmlSchemaTest.php on line 39
    ```
    cbastienbaron committed Apr 10, 2015
    Copy the full SHA
    7179124 View commit details
  2. Merge pull request #136 from cbastienbaron/patch-1

    Fix Typo NS declaration, Fatal local tests
    dbu committed Apr 10, 2015
    Copy the full SHA
    fce3b62 View commit details

Commits on Apr 25, 2015

  1. Copy the full SHA
    58c541d View commit details
  2. Merge pull request #137 from symfony-cmf/remove_deprecations

    Remove deprecations
    dbu committed Apr 25, 2015
    Copy the full SHA
    78b5da6 View commit details

Commits on May 27, 2015

  1. Added missed PHPDoc annotation for Page class

    Added missed title property type PHPDoc annotation for Page class
    AndrewCarterUK committed May 27, 2015
    Copy the full SHA
    4849cec View commit details
  2. PHPDoc inheritance on Page object

    The getNode() method on the Page object should inherit the method documentation from the NodeInterface.
    AndrewCarterUK committed May 27, 2015
    Copy the full SHA
    6a4b5d0 View commit details

Commits on May 28, 2015

  1. Merge pull request #139 from AndrewCarterUK/patch-2

    PHPDoc inheritance on Page object
    dbu committed May 28, 2015
    Copy the full SHA
    793d751 View commit details
  2. Copy the full SHA
    d3ada9e View commit details
  3. Merge pull request #140 from symfony-cmf/revert-139-patch-2

    Revert "PHPDoc inheritance on Page object"
    dbu committed May 28, 2015
    Copy the full SHA
    0ad1a7a View commit details
  4. Merge pull request #138 from AndrewCarterUK/patch-1

    Added missed PHPDoc annotation for Page class
    dbu committed May 28, 2015
    Copy the full SHA
    fbe0ee6 View commit details

Commits on May 29, 2015

  1. Copy the full SHA
    3fc8990 View commit details
  2. Copy the full SHA
    f1b167c View commit details
  3. Copy the full SHA
    ed4ad0f View commit details
  4. Require Symfony 2.3.4

    wouterj committed May 29, 2015
    Copy the full SHA
    33137a1 View commit details
  5. Fix formatting

    wouterj committed May 29, 2015
    Copy the full SHA
    5ddfab8 View commit details

Commits on May 31, 2015

  1. Copy the full SHA
    17e85a1 View commit details

Commits on Jun 4, 2015

  1. Copy the full SHA
    7e25b7e View commit details

Commits on Jun 5, 2015

  1. Copy the full SHA
    18cd825 View commit details
Showing with 645 additions and 172 deletions.
  1. +1 −0 .styleci.yml
  2. +30 −11 .travis.yml
  3. +26 −10 Admin/PageAdmin.php
  4. +23 −0 CHANGELOG.md
  5. +9 −4 CmfSimpleCmsBundle.php
  6. +40 −15 DependencyInjection/CmfSimpleCmsExtension.php
  7. +39 −0 DependencyInjection/Compiler/AppendRouteBasepathPass.php
  8. +15 −1 DependencyInjection/Configuration.php
  9. +82 −46 Doctrine/Phpcr/Page.php
  10. +7 −8 Initializer/HomepageInitializer.php
  11. +2 −4 Migrator/Phpcr/Page.php
  12. +9 −1 README.md
  13. +3 −0 Resources/config/admin-phpcr.xml
  14. +5 −3 Resources/config/menu-phpcr.xml
  15. +6 −0 Resources/config/schema/simplecms-1.1.xsd
  16. +1 −0 Resources/config/services-phpcr.xml
  17. +1 −1 Resources/meta/LICENSE
  18. +79 −0 Resources/translations/CmfSimpleCmsBundle.it.xliff
  19. +79 −0 Resources/translations/CmfSimpleCmsBundle.nl.xliff
  20. +1 −1 Tests/Functional/Doctrine/Phpcr/PageTest.php
  21. +1 −1 Tests/Functional/Migrator/Phpcr/PageTest.php
  22. +2 −11 Tests/Resources/DataFixtures/Phpcr/LoadPageData.php
  23. +13 −1 Tests/Resources/Fixtures/config/config.php
  24. +2 −0 Tests/Resources/Fixtures/config/config.xml
  25. +2 −0 Tests/Resources/Fixtures/config/config.yml
  26. +9 −0 Tests/Resources/app/AppKernel.php
  27. +1 −3 Tests/Resources/app/config/cmf_simple_cms.xml
  28. +10 −0 Tests/Resources/app/config/config.php
  29. +9 −0 Tests/Resources/app/config/routing.php
  30. +1 −1 Tests/Resources/app/config/routing/test.yml
  31. +37 −4 Tests/Unit/DependencyInjection/CmfSimpleCmsExtensionTest.php
  32. +34 −0 Tests/Unit/DependencyInjection/Compiler/AppendRouteBasepathPassTest.php
  33. +6 −2 Tests/Unit/DependencyInjection/ConfigurationTest.php
  34. +2 −2 Tests/Unit/DependencyInjection/XmlSchemaTest.php
  35. +18 −5 Tests/Unit/Doctrine/Phpcr/PageTest.php
  36. +7 −12 Tests/WebTest/Admin/PageAdminTest.php
  37. +3 −7 Tests/WebTest/TestApp/HttpStatusCodeTest.php
  38. +21 −18 composer.json
  39. +9 −0 phpunit.xml.dist
1 change: 1 addition & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
preset: symfony
41 changes: 30 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -4,24 +4,43 @@ php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

sudo: false

cache:
directories:
- $HOME/.composer/cache/files

env:
- SYMFONY_VERSION=2.3.*
- SYMFONY_VERSION=2.4.*
- SYMFONY_VERSION=dev-master
- SYMFONY_VERSION=2.7.* SYMFONY_DEPRECATIONS_HELPER=weak

matrix:
include:
- php: 5.3
env: SYMFONY_VERSION="^2.3.4" COMPOSER_FLAGS="--prefer-lowest" SYMFONY_DEPRECATIONS_HELPER=weak
- php: 5.6
env: SYMFONY_VERSION=2.3.* SYMFONY_DEPRECATIONS_HELPER=weak
- php: 5.6
env: SYMFONY_VERSION=2.8.*
- php: 5.6
env: SYMFONY_VERSION=3.0.*
allow_failures:
- env: SYMFONY_VERSION=2.8.*
- env: SYMFONY_VERSION=3.0.*
fast_finish: true

before_script:
before_install:
- composer self-update
- echo 'memory_limit = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer require symfony/symfony:${SYMFONY_VERSION}
- vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh
- if [ "${TRAVIS_PHP_VERSION}" != "hhvm" ]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update

install: composer update $COMPOSER_FLAGS --prefer-dist

script: phpunit --coverage-text

notifications:
irc: "irc.freenode.org#symfony-cmf"
email: "symfony-cmf-devs@googlegroups.com"

matrix:
allow_failures:
- env: SYMFONY_VERSION=dev-master
36 changes: 26 additions & 10 deletions Admin/PageAdmin.php
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
/*
* This file is part of the Symfony CMF package.
*
* (c) 2011-2014 Symfony CMF
* (c) 2011-2015 Symfony CMF
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -14,7 +14,6 @@
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\DoctrinePHPCRAdminBundle\Admin\Admin;
use Symfony\Cmf\Bundle\RoutingBundle\Admin\RouteAdmin;
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;

@@ -23,29 +22,42 @@ class PageAdmin extends RouteAdmin
protected $translationDomain = 'CmfSimpleCmsBundle';

private $sortOrder = false;
private $ivoryCkeditor = array();

public function setSortOrder($sortOrder)
{
if (! in_array($sortOrder, array(false, 'asc', 'desc'))) {
if (!in_array($sortOrder, array(false, 'asc', 'desc'))) {
throw new \InvalidArgumentException($sortOrder);
}
$this->sortOrder = $sortOrder;
}

public function setIvoryCkeditor($config)
{
$this->ivoryCkeditor = (array) $config;
}

protected function configureListFields(ListMapper $listMapper)
{
$textType = method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix') ? 'Symfony\Component\Form\Extension\Core\Type\TextType' : 'text';

$listMapper
->addIdentifier('path', 'text')
->addIdentifier('title', 'text')
->add('label', 'text')
->add('name', 'text')
->addIdentifier('path', $textType)
->addIdentifier('title', $textType)
->add('label', $textType)
->add('name', $textType)
;
}

protected function configureFormFields(FormMapper $formMapper)
{
parent::configureFormFields($formMapper);

$isSf28 = method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix');
$ckeditorType = $isSf28 ? 'Ivory\CKEditorBundle\Form\Type\CKEditorType' : 'ckeditor';
$textareaType = $isSf28 ? 'Symfony\Component\Form\Extension\Core\Type\TextareaType' : 'textarea';
$sonataTypeImmutableArray = $isSf28 ? 'Sonata\CoreBundle\Form\Type\ImmutableArrayType' : 'sonata_type_immutable_array';

$formMapper->remove('content');

// remap to routeOptions
@@ -57,14 +69,18 @@ protected function configureFormFields(FormMapper $formMapper)
))
->add('label', null, array('required' => false))
->add('title')
->add('body', 'textarea')
->add(
'body',
$this->ivoryCkeditor ? $ckeditorType : $textareaType,
$this->ivoryCkeditor
)
->end()
->with('form.group_advanced', array(
'translation_domain' => 'CmfRoutingBundle',
))
->add(
'routeOptions',
'sonata_type_immutable_array',
$sonataTypeImmutableArray,
array('keys' => $this->configureFieldsForOptions($this->getSubject()->getRouteOptions()), 'label' => 'form.label_options'),
array('help' => 'form.help_options')
)
@@ -76,7 +92,7 @@ protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('title', 'doctrine_phpcr_string')
->add('name', 'doctrine_phpcr_nodename')
->add('name', 'doctrine_phpcr_nodename')
;
}

23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
Changelog
=========

1.3.0
-----

1.3.0-RC1
---------

* **2015-08-31**: Added IvoryCKEditorBundle integration and added the
`ivory_ckeditor` settings.
* **2015-10-31**: Calling `getCreateDate()`, `getAddLocalePattern()` or
`setAddLocalePattern()` now results in a deprecation notice. The methods are
deprecated since 1.1 and will be removed in 2.0.

1.2.0-RC1
---------

* **2014-06-06**: Updated to PSR-4 autoloading

1.1.1
-----

* **2014-05-26**: Page now provides a convenience method that returns the UUID
of the document if it has one.

1.1.0
-----

13 changes: 9 additions & 4 deletions CmfSimpleCmsBundle.php
Original file line number Diff line number Diff line change
@@ -3,14 +3,15 @@
/*
* This file is part of the Symfony CMF package.
*
* (c) 2011-2014 Symfony CMF
* (c) 2011-2015 Symfony CMF
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Cmf\Bundle\SimpleCmsBundle;

use Symfony\Cmf\Bundle\SimpleCmsBundle\DependencyInjection\Compiler\AppendRouteBasepathPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Doctrine\Bundle\PHPCRBundle\DependencyInjection\Compiler\DoctrinePhpcrMappingsPass;
@@ -21,17 +22,21 @@ public function build(ContainerBuilder $container)
{
parent::build($container);

$container->addCompilerPass(new AppendRouteBasepathPass());

if ($container->hasExtension('jms_di_extra')) {
$container->getExtension('jms_di_extra')->blackListControllerFile(__DIR__ . '/Controller/PageAdminController.php');
$container->getExtension('jms_di_extra')->blackListControllerFile(__DIR__.'/Controller/PageAdminController.php');
}

if (class_exists('Doctrine\Bundle\PHPCRBundle\DependencyInjection\Compiler\DoctrinePhpcrMappingsPass')) {
$container->addCompilerPass(
DoctrinePhpcrMappingsPass::createXmlMappingDriver(
array(
realpath(__DIR__ . '/Resources/config/doctrine-phpcr') => 'Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr',
realpath(__DIR__.'/Resources/config/doctrine-phpcr') => 'Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr',
),
array('cmf_simple_cms.persistence.phpcr.manager_name')
array('cmf_simple_cms.persistence.phpcr.manager_name'),
false,
array('CmfSimpleCmsBundle' => 'Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr')
)
);
}
55 changes: 40 additions & 15 deletions DependencyInjection/CmfSimpleCmsExtension.php
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
/*
* This file is part of the Symfony CMF package.
*
* (c) 2011-2014 Symfony CMF
* (c) 2011-2015 Symfony CMF
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -17,7 +17,6 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\Config\FileLocator;

use PHPCR\Util\PathHelper;

class CmfSimpleCmsExtension extends Extension implements PrependExtensionInterface
@@ -44,17 +43,13 @@ public function prepend(ContainerBuilder $container)
'routers_by_id' => array(
'router.default' => 0,
'cmf_routing.dynamic_router' => -100,
)
),
),
'dynamic' => array(
'enabled' => true,
)
),
);
if (isset($config['persistence']['phpcr']['basepath'])
&& '/cms/simple' != $config['persistence']['phpcr']['basepath']
) {
$prependConfig['dynamic']['persistence']['phpcr']['route_basepaths'] = array($config['persistence']['phpcr']['basepath']);
}

$container->prependExtensionConfig('cmf_routing', $prependConfig);
}

@@ -70,28 +65,58 @@ public function load(array $configs, ContainerBuilder $container)
$this->loadPhpcrMenu($config, $loader, $container);
}
}

$this->loadIvoryCKEditor($config['ivory_ckeditor'], $container);
}

protected function loadIvoryCKEditor(array $config, ContainerBuilder $container)
{
$container->setParameter($this->getAlias().'.ivory_ckeditor.config', array());

$bundles = $container->getParameter('kernel.bundles');
if ('auto' === $config['enabled'] && !isset($bundles['IvoryCKEditorBundle'])) {
return;
}

if (true === $config['enabled'] && !isset($bundles['IvoryCKEditorBundle'])) {
$message = 'IvoryCKEditorBundle integration was explicitely enabled, but the bundle is not available';

if (class_exists('Ivory\CKEditorBundle\IvoryCKEditorBundle')) {
$message .= ' (did you forget to register the bundle in the AppKernel?)';
}

throw new \LogicException($message.'.');
}

if (false === $config['enabled'] || !isset($bundles['IvoryCKEditorBundle'])) {
return;
}

$container->setParameter($this->getAlias().'.ivory_ckeditor.config', array(
'config_name' => $config['config_name'],
));
}

protected function loadPhpcr($config, XmlFileLoader $loader, ContainerBuilder $container)
{
$loader->load('services-phpcr.xml');
$loader->load('migrator-phpcr.xml');

$prefix = $this->getAlias() . '.persistence.phpcr';
$prefix = $this->getAlias().'.persistence.phpcr';

$container->setParameter($prefix . '.basepath', $config['basepath']);
$container->setParameter($prefix.'.basepath', $config['basepath']);

$container->setParameter($prefix . '.menu_basepath', PathHelper::getParentPath($config['basepath']));
$container->setParameter($prefix.'.menu_basepath', PathHelper::getParentPath($config['basepath']));

if ($config['use_sonata_admin']) {
$this->loadSonataAdmin($config, $loader, $container);
} elseif (isset($config['sonata_admin'])) {
throw new InvalidConfigurationException('Do not define sonata_admin options when use_sonata_admin is set to false');
}

$container->setParameter($prefix . '.manager_name', $config['manager_name']);
$container->setParameter($prefix.'.manager_name', $config['manager_name']);

$container->setParameter($prefix . '.document.class', $config['document_class']);
$container->setParameter($prefix.'.document.class', $config['document_class']);
}

protected function loadPhpcrMenu($config, XmlFileLoader $loader, ContainerBuilder $container)
@@ -111,7 +136,7 @@ protected function loadSonataAdmin($config, XmlFileLoader $loader, ContainerBuil
return;
}

$container->setParameter($this->getAlias() . '.persistence.phpcr.admin.sort',
$container->setParameter($this->getAlias().'.persistence.phpcr.admin.sort',
isset($config['sonata_admin'])
? $config['sonata_admin']['sort']
: false
39 changes: 39 additions & 0 deletions DependencyInjection/Compiler/AppendRouteBasepathPass.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

/*
* This file is part of the Symfony CMF package.
*
* (c) 2011-2015 Symfony CMF
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Cmf\Bundle\SimpleCmsBundle\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* Appends the basepath for the SimpleCms to the RoutingBundle route basepaths.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*/
class AppendRouteBasepathPass implements CompilerPassInterface
{
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
{
if (!$container->hasParameter('cmf_routing.dynamic.persistence.phpcr.route_basepaths')
|| !$container->hasParameter('cmf_simple_cms.persistence.phpcr.basepath')) {
return;
}

$routeBasepaths = $container->getParameter('cmf_routing.dynamic.persistence.phpcr.route_basepaths');
$routeBasepaths[] = $container->getParameter('cmf_simple_cms.persistence.phpcr.basepath');

$container->setParameter('cmf_routing.dynamic.persistence.phpcr.route_basepaths', array_unique($routeBasepaths));
}
}
Loading