Skip to content

Commit 097e0e2

Browse files
committed
set basepath as a parameter, fixed manager_name handling
1 parent b33bc3e commit 097e0e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DependencyInjection/CmfCoreExtension.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ public function load(array $configs, ContainerBuilder $container)
160160
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
161161
$loader->load('services.xml');
162162

163-
if (!empty($config['phpcr']['enabled'])) {
163+
if (!empty($config['persistence']['phpcr']['enabled'])) {
164164
$container->setParameter($this->getAlias() . '.persistence.phpcr.manager_name', $config['persistence']['phpcr']['manager_name']);
165+
$container->setParameter($this->getAlias() . '.persistence.phpcr.basepath', $config['persistence']['phpcr']['basepath']);
165166
}
166167
if ($config['publish_workflow']['enabled']) {
167168
$checker = $this->loadPublishWorkflow($config['publish_workflow'], $loader, $container);

0 commit comments

Comments
 (0)