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

Commit b093827

Browse files
committed
paths => resources and fixed content_method_provider service name
1 parent 38ec2e2 commit b093827

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

DependencyInjection/CmfRoutingAutoExtension.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ public function load(array $configs, ContainerBuilder $container)
4040
}
4141

4242
// add configured mapping file resources
43-
foreach ($config['mapping']['resources'] as $path) {
44-
$resources[] = $path;
43+
foreach ($config['mapping']['resources'] as $resource) {
44+
$resources[] = $resource;
4545
}
46-
$container->setParameter('cmf_routing_auto.mapping.loader.resources', $paths);
46+
$container->setParameter('cmf_routing_auto.metadata.loader.resources', $resources);
4747

4848
if ($this->isConfigEnabled($container, $config['persistence']['phpcr'])) {
49-
$container->setParameter('cmf_routing_auto.persistence.phpcr.route_basepath', $config['persistence']['phpcr']['route_basepath']);
49+
$container->setParameter('cmf_routing_auto.persistence.phpcr.route_baseresource', $config['persistence']['phpcr']['route_baseresource']);
5050
}
5151
}
5252

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getConfigTreeBuilder()
3030
->arrayNode('mapping')
3131
->fixXmlConfig('resource')
3232
->children()
33-
->arrayNode('paths')
33+
->arrayNode('resources')
3434
->prototype('array')
3535
->beforeNormalization()
3636
->ifString()

Resources/config/token_providers.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</parameters>
1212

1313
<services>
14-
<service id="cmf_routing_auto.token_provider.content_method_provider" class="%cmf_routing_auto.token_provider.content_method.class%">
14+
<service id="cmf_routing_auto.token_provider.content_method" class="%cmf_routing_auto.token_provider.content_method.class%">
1515
<argument type="service" id="cmf_routing_auto.slugifier" />
1616
<tag name="cmf_routing_auto.token_provider" alias="content_method" />
1717
</service>

0 commit comments

Comments
 (0)