Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Bundles Symfony 2
plantuml-bundle
Commits
456e74de
Commit
456e74de
authored
Jul 20, 2021
by
Guillaume Perréal
Browse files
Corrige la signature des méthodes execute des commandes.
parent
2585f8a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/Command/GenerateCommand.php
View file @
456e74de
...
...
@@ -46,6 +46,9 @@ class GenerateCommand extends Command
$this
->
container
=
$container
;
}
/**
* {@inheritdoc}
*/
protected
function
configure
():
void
{
$this
...
...
@@ -55,9 +58,9 @@ class GenerateCommand extends Command
}
/**
*
@SuppressWarnings(UnusedFormalParameter)
*
{@inheritdoc}
*/
protected
function
execute
(
InputInterface
$input
,
OutputInterface
$output
):
void
protected
function
execute
(
InputInterface
$input
,
OutputInterface
$output
):
int
{
$name
=
$input
->
getArgument
(
'graph'
);
$serviceId
=
"irstea_plant_uml.graph.
$name
"
;
...
...
@@ -70,5 +73,7 @@ class GenerateCommand extends Command
$graph
=
$this
->
container
->
get
(
$serviceId
);
$graph
->
visitAll
();
$graph
->
writeTo
(
$writer
);
return
0
;
}
}
src/Command/ListCommand.php
View file @
456e74de
...
...
@@ -64,7 +64,7 @@ class ListCommand extends Command
/**
* {@inheritdoc}
*/
protected
function
execute
(
InputInterface
$input
,
OutputInterface
$output
)
protected
function
execute
(
InputInterface
$input
,
OutputInterface
$output
)
:
int
{
foreach
(
$this
->
graphNames
as
$name
)
{
$output
->
writeln
(
$name
);
...
...
src/Command/RenderCommand.php
View file @
456e74de
...
...
@@ -108,7 +108,7 @@ class RenderCommand extends Command
/**
* {@inheritdoc}
*/
protected
function
execute
(
InputInterface
$input
,
OutputInterface
$output
):
void
protected
function
execute
(
InputInterface
$input
,
OutputInterface
$output
):
int
{
$graphs
=
$input
->
getArgument
(
'graph'
)
?:
$this
->
graphNames
;
$format
=
$input
->
getOption
(
'format'
)
?:
$this
->
defaultFormat
;
...
...
@@ -125,6 +125,8 @@ class RenderCommand extends Command
$this
->
renderGraph
(
$graph
,
$target
,
$format
,
$io
);
}
return
0
;
}
/**
...
...
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