Skip to content

Commit e4f647b

Browse files
committed
and handle another case for #169
1 parent 63883e1 commit e4f647b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

DependencyInjection/CmfRoutingExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ private function setupDynamicRouter(array $config, ContainerBuilder $container,
145145
} else {
146146
$container->removeDefinition($this->getAlias() . '.enhancer_controller_for_templates_by_class');
147147
}
148+
} else {
149+
$container->removeDefinition($this->getAlias() . '.enhancer_controller_for_templates_by_class');
148150
}
151+
149152
if (!empty($config['route_filters_by_id'])) {
150153
$matcher = $container->getDefinition('cmf_routing.nested_matcher');
151154
foreach ($config['route_filters_by_id'] as $id => $priority) {

0 commit comments

Comments
 (0)