From 5f6a1acaacb4035d872e2fe1357ee90eeae419f3 Mon Sep 17 00:00:00 2001 From: Chi-teck Date: Sun, 26 Jan 2020 16:00:45 +0000 Subject: [PATCH] [Console] Add constants for main exit codes --- src/Symfony/Component/Console/Command/Command.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php index b7bf16cfba..fef22ec441 100644 --- a/src/Symfony/Component/Console/Command/Command.php +++ b/src/Symfony/Component/Console/Command/Command.php @@ -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 */