Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/5.x' into 5.x
Browse files Browse the repository at this point in the history
* upstream/5.x:
  Tweak
  Added Invalid Constant
  • Loading branch information
OskarStark committed Dec 4, 2020
2 parents a45d678 + c26c56f commit 78eaf54
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ want a command to create a user::
// or return this if some error happened during the execution
// (it's equivalent to returning int(1))
// return Command::FAILURE;

// or return this to indicate incorrect command usage; e.g. invalid options
// or missing arguments (it's equivalent to returning int(2))
// return Command::INVALID
}
}

Expand All @@ -65,6 +69,10 @@ want a command to create a user::
The ``Command::SUCCESS`` and ``Command::FAILURE`` constants were introduced
in Symfony 5.1.

.. versionadded:: 5.3

The ``Command::INVALID`` constant was introduced in Symfony 5.3

Configuring the Command
-----------------------

Expand Down

0 comments on commit 78eaf54

Please sign in to comment.