Commit 7fb50e2e authored by Guillaume Perréal's avatar Guillaume Perréal

Ignore les graphes nommés .xxx dès la configuration.

parent 3fe87e8e
......@@ -81,6 +81,16 @@ class Configuration implements ConfigurationInterface
$node
->info('Graphes.')
->useAttributeAsKey('name')
->beforeNormalization()
->always(function ($graphs) {
foreach (array_keys($graphs) as $key) {
if (strpos($key, '.') === 0) {
unset($graphs[$key]);
}
}
return $graphs;
})
->end()
->prototype('array')
->info("description d'un graphe à générer.")
->children()
......
......@@ -49,9 +49,6 @@ class IrsteaPlantUmlExtension extends Extension
$filterBuilder = new ClassFilterBuilder($container);
foreach ($config['graphs'] as $key => $graph) {
if (strpos($key, '.') === 0) {
continue;
}
$id = "irstea_plant_uml.graph.$key";
$builder = new GraphDefinitionBuilder($container, $id, $graph, $filterBuilder);
$container->setDefinition($id, $builder->build());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment