feature #35478 [Console] Add constants for main exit codes (Chi-teck)

This PR was squashed before being merged into the 5.1-dev branch (closes #35478).

Discussion
----------

[Console] Add constants for main exit codes

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? |no
| Tickets       | Fix #35431
| License       | MIT

Commits
-------

5f6a1acaac [Console] Add constants for main exit codes
This commit is contained in:
Fabien Potencier 2020-01-29 12:05:28 +01:00
commit 5b38f70367

View File

@ -29,6 +29,9 @@ use Symfony\Component\Console\Output\OutputInterface;
*/
class Command
{
public const SUCCESS = 0;
public const FAILURE = 1;
/**
* @var string|null The default command name
*/