Skip to content

Commit d060e3d

Browse files
committed
added enabled flag to phpcr_provider config
1 parent e79b4f5 commit d060e3d

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Changelog
22
=========
33

4+
* **2013-05-30**: [DependencyInjection] added `enabled` flag to `phpcr_provider` config
45
* **2013-07-26**: [Model] Deprecated setRouteContent and getRouteContent, use setContent and getContent instead.
56
* **2013-07-19**: [Model] Separated database agnostic, doctrine generic and
67
PHPCR-ODM specific code to prepare for Doctrine ORM support.

DependencyInjection/CmfRoutingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private function setupDynamicRouter(array $config, ContainerBuilder $container,
8585

8686
$loader->load('dynamic_routing.xml');
8787

88-
if (isset($config['phpcr_provider'])) {
88+
if (!empty($config['phpcr_provider']['enabled'])) {
8989
$this->loadPhpcrProvider($config['phpcr_provider'], $loader, $container);
9090
}
9191

DependencyInjection/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function getConfigTreeBuilder()
6060
->end()
6161
->arrayNode('phpcr_provider')
6262
->children()
63+
->scalarNode('enabled')->defaultNull()->end()
6364
->scalarNode('manager_registry')->defaultValue('doctrine_phpcr')->end()
6465
->scalarNode('manager_name')->defaultNull()->end()
6566
->scalarNode('route_basepath')->defaultValue('/cms/routes')->end()

0 commit comments

Comments
 (0)