8000
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.
2 parents a45d678 + c26c56f commit 78eaf54Copy full SHA for 78eaf54
console.rst
@@ -57,6 +57,10 @@ want a command to create a user::
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
+ // or return this to indicate incorrect command usage; e.g. invalid options
62
+ // or missing arguments (it's equivalent to returning int(2))
63
+ // return Command::INVALID
64
}
65
66
@@ -65,6 +69,10 @@ want a command to create a user::
69
The ``Command::SUCCESS`` and ``Command::FAILURE`` constants were introduced
70
in Symfony 5.1.
67
71
72
+.. versionadded:: 5.3
73
74
+ The ``Command::INVALID`` constant was introduced in Symfony 5.3
75
68
76
Configuring the Command
77
-----------------------
78
0 commit comments