File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Original file line number Diff line number Diff line change @@ -45,11 +45,17 @@ want a command to create a user::
45
45
46
46
protected function execute(InputInterface $input, OutputInterface $output)
47
47
{
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. You can also use these constants to make code more readable
49
52
53
+ // return this if there was no problem running the command
54
+ // (it's equivalent to returning int(0))
50
55
return Command::SUCCESS;
51
56
52
- // 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))
53
59
// return Command::FAILURE;
54
60
}
55
61
}
You can’t perform that action at this time.
0 commit comments