We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fda396e commit 4dbc325Copy full SHA for 4dbc325
console.rst
@@ -45,11 +45,17 @@ want a command to create a user::
45
46
protected function execute(InputInterface $input, OutputInterface $output)
47
{
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. You can also use these constants to make code more readable
52
53
+ // return this if there was no problem running the command
54
+ // (it's equivalent to returning int(0))
55
return Command::SUCCESS;
56
- // or return this if some error happened during the execution:
57
+ // or return this if some error happened during the execution
58
+ // (it's equivalent to returning int(1))
59
// return Command::FAILURE;
60
}
61
0 commit comments