Skip to content

Commit 49b93ac

Browse files
committed
Improved exception message
1 parent e4f647b commit 49b93ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/CmfRoutingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function setupDynamicRouter(array $config, ContainerBuilder $container,
100100
$hasProvider = true;
101101
}
102102
if (!$hasProvider) {
103-
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');
103+
throw new InvalidConfigurationException('When the dynamic router is enabled, you need to either enable one of the persistence layers or set the cmf_routing.dynamic.route_provider_service_id option');
104104
}
105105
if (isset($config['content_repository_service_id'])) {
106106
$container->setAlias('cmf_routing.content_repository', $config['content_repository_service_id']);

0 commit comments

Comments
 (0)