Skip to content

Commit eaa1a5f

Browse files
committed
Loading from both paths first found wins
1 parent bd685c4 commit eaa1a5f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

DependencyInjection/CmfCreateExtension.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ public function load(array $configs, ContainerBuilder $container)
6464
if (file_exists($rdfMappingDir)) {
6565
$config['rdf_config_dirs'][] = $rdfMappingDir;
6666
}
67-
else {
68-
$rdfMappingDir = dirname($bundle->getFilename()).'/Resources/rdf-mappings';
69-
if (file_exists($rdfMappingDir)) {
70-
$config['rdf_config_dirs'][] = $rdfMappingDir;
71-
}
67+
68+
$rdfMappingDir = dirname($bundle->getFilename()).'/Resources/rdf-mappings';
69+
if (file_exists($rdfMappingDir)) {
70+
$config['rdf_config_dirs'][] = $rdfMappingDir;
7271
}
7372
}
7473
}

0 commit comments

Comments
 (0)