File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ want a command to create a user::
46
46
protected function execute(InputInterface $input, OutputInterface $output)
47
47
{
48
48
// ...
49
+
50
+ return 0;
49
51
}
50
52
}
51
53
@@ -316,6 +318,7 @@ command:
316
318
:method: `Symfony\\ Component\\ Console\\ Command\\ Command::execute ` *(required) *
317
319
This method is executed after ``interact() `` and ``initialize() ``.
318
320
It contains the logic you want the command to execute.
321
+ Must return an integer which will be used as the command `exit status `_.
319
322
320
323
.. _console-testing-commands :
321
324
@@ -395,3 +398,5 @@ tools capable of helping you with different tasks:
395
398
* :doc: `/components/console/helpers/formatterhelper `: customize the output colorization
396
399
* :doc: `/components/console/helpers/progressbar `: shows a progress bar
397
400
* :doc: `/components/console/helpers/table `: displays tabular data as a table
401
+
402
+ .. _`exit status` : https://en.wikipedia.org/wiki/Exit_status
You can’t perform that action at this time.
0 commit comments