Skip to content

Commit abcfd55

Browse files
author
gary houbre
committed
More explication for return into execute command function
1 parent 1d2fab8 commit abcfd55

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

console.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ want a command to create a user::
4545

4646
protected function execute(InputInterface $input, OutputInterface $output)
4747
{
48-
// ...
48+
// ... put here the code to run in your command
4949

50+
// return this if there was no problem running the command
5051
return 0;
52+
53+
// or return this if some error happened during the execution
54+
// return 1;
5155
}
5256
}
5357

0 commit comments

Comments
 (0)