Skip to content

Commit 56a42f6

Browse files
committed
Merge pull request #235 from symfony-cmf/reintroduce-old-basepath-parameter
reintroduce the old cmf_routing.dynamic.persistence.phpcr.route_basepath parameter to maintain BC
2 parents 0870e64 + 615c6cf commit 56a42f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

DependencyInjection/CmfRoutingExtension.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ public function loadPhpcrProvider($config, XmlFileLoader $loader, ContainerBuild
239239
$this->getAlias() . '.dynamic.persistence.phpcr.route_basepaths',
240240
$config['route_basepaths']
241241
);
242+
243+
$basePath = reset($config['route_basepaths']);
244+
$container->setParameter(
245+
$this->getAlias() . '.dynamic.persistence.phpcr.route_basepath',
246+
$basePath
247+
);
248+
242249
$container->setParameter(
243250
$this->getAlias() . '.dynamic.persistence.phpcr.content_basepath',
244251
$config['content_basepath']

0 commit comments

Comments
 (0)