Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Pôle IS
Bundles Symfony 2
plantuml-bundle
Commits
7fb50e2e
Commit
7fb50e2e
authored
Jul 04, 2019
by
Guillaume Perréal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore les graphes nommés .xxx dès la configuration.
parent
3fe87e8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/DependencyInjection/Configuration.php
src/DependencyInjection/Configuration.php
+10
-0
src/DependencyInjection/IrsteaPlantUmlExtension.php
src/DependencyInjection/IrsteaPlantUmlExtension.php
+0
-3
No files found.
src/DependencyInjection/Configuration.php
View file @
7fb50e2e
...
...
@@ -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
()
...
...
src/DependencyInjection/IrsteaPlantUmlExtension.php
View file @
7fb50e2e
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment