Skip to content

Commit 0e369c8

Browse files
committed
fixed basepath parameter names
1 parent 0cb8931 commit 0e369c8

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

DependencyInjection/CmfRoutingExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private function setupDynamicRouter(array $config, ContainerBuilder $container,
9898
$hasProvider = true;
9999
}
100100
if (!$hasProvider) {
101-
throw new InvalidConfigurationException('When the dynamic router is enabled, you need to either set dynamic.phpcr_provider.enabled or specify dynamic.route_provider_service_id');
101+
throw new InvalidConfigurationException('When the dynamic router is enabled, you need to either set dynamic.persistence.phpcr.enabled or specify dynamic.route_provider_service_id');
102102
}
103103
if (isset($config['content_repository_service_id'])) {
104104
$container->setAlias('cmf_routing.content_repository', $config['content_repository_service_id']);
@@ -142,8 +142,8 @@ public function loadPhpcrProvider($config, XmlFileLoader $loader, ContainerBuild
142142

143143
$container->setParameter($this->getAlias() . '.backend_type_phpcr', true);
144144

145-
$container->setParameter($this->getAlias() . '.phpcr_provider.route_basepath', $config['route_basepath']);
146-
$container->setParameter($this->getAlias() . '.phpcr_provider.content_basepath', $config['content_basepath']);
145+
$container->setParameter($this->getAlias() . '.persistence.phpcr.route_basepath', $config['route_basepath']);
146+
$container->setParameter($this->getAlias() . '.persistence.phpcr.content_basepath', $config['content_basepath']);
147147

148148
$container->setParameter($this->getAlias() . '.manager_name', $config['manager_name']);
149149

Resources/config/admin_phpcr.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
</call>
2525

2626
<call method="setContentRoot">
27-
<argument>%cmf_routing.phpcr_provider.content_basepath%</argument>
27+
<argument>%cmf_routing.persistence.phpcr.content_basepath%</argument>
2828
</call>
2929

3030
<call method="setRouteRoot">
31-
<argument>%cmf_routing.phpcr_provider.route_basepath%</argument>
31+
<argument>%cmf_routing.persistence.phpcr.route_basepath%</argument>
3232
</call>
3333
<call method="setControllerResolver">
3434
<argument type="service" id="controller_resolver" />
@@ -46,7 +46,7 @@
4646
</call>
4747

4848
<call method="setRouteRoot">
49-
<argument>%cmf_routing.phpcr_provider.route_basepath%</argument>
49+
<argument>%cmf_routing.persistence.phpcr.route_basepath%</argument>
5050
</call>
5151
</service>
5252

Resources/config/provider_phpcr.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<argument type="service" id="doctrine_phpcr"/>
1717
<argument>%cmf_routing.route_model_class%</argument>
1818
<call method="setManagerName"><argument>%cmf_routing.manager_name%</argument></call>
19-
<call method="setPrefix"><argument>%cmf_routing.phpcr_provider.route_basepath%</argument></call>
19+
<call method="setPrefix"><argument>%cmf_routing.persistence.phpcr.route_basepath%</argument></call>
2020
</service>
2121

2222
<service id="cmf_routing.phpcr_content_repository" class="%cmf_routing.content_repository_class%">
@@ -25,13 +25,13 @@
2525
</service>
2626

2727
<service id="cmf_routing.phpcrodm_route_idprefix_listener" class="%cmf_routing.phpcrodm_route_idprefix_listener_class%">
28-
<argument>%cmf_routing.phpcr_provider.route_basepath%</argument>
28+
<argument>%cmf_routing.persistence.phpcr.route_basepath%</argument>
2929
<tag name="doctrine_phpcr.event_listener" event="postLoad" />
3030
<tag name="doctrine_phpcr.event_listener" event="postPersist" />
3131
</service>
3232

3333
<service id="cmf_routing.phpcrodm_route_locale_listener" class="%cmf_routing.phpcrodm_route_locale_listener_class%">
34-
<argument>%cmf_routing.phpcr_provider.route_basepath%</argument>
34+
<argument>%cmf_routing.persistence.phpcr.route_basepath%</argument>
3535
<argument>%cmf_routing.locales%</argument>
3636
<tag name="doctrine_phpcr.event_listener" event="postLoad" />
3737
<tag name="doctrine_phpcr.event_listener" event="postPersist" />
@@ -40,7 +40,7 @@
4040

4141
<service id="cmf_routing.initializer" class="Doctrine\Bundle\PHPCRBundle\Initializer\GenericInitializer">
4242
<argument type="collection">
43-
<argument>%cmf_routing.phpcr_provider.route_basepath%</argument>
43+
<argument>%cmf_routing.persistence.phpcr.route_basepath%</argument>
4444
</argument>
4545
<tag name="doctrine_phpcr.initializer"/>
4646
</service>

0 commit comments

Comments
 (0)