Skip to content

Commit eef382c

Browse files
gary houbreOskarStark
gary houbre
authored andcommitted
More explication for return into execute command function
1 parent 1d2fab8 commit eef382c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

console.rst

+8-1
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,16 @@ 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
49+
50+
// this method must return an integer number with the "exit status code"
51+
// of the command.
4952

53+
// return this if there was no problem running the command
5054
return 0;
55+
56+
// or return this if some error happened during the execution
57+
// return 1;
5158
}
5259
}
5360

0 commit comments

Comments
 (0)