From b6b958c6d2e031e3cc77db9c962410e307795bcc Mon Sep 17 00:00:00 2001 From: Paul Partington Date: Fri, 28 Jul 2023 10:27:09 +0100 Subject: [PATCH] Remove the usage of constants as they are unavailable in older versions of Symfony Console. --- Console/Command/ListCommand.php | 4 ++-- Console/Command/RunCommand.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Console/Command/ListCommand.php b/Console/Command/ListCommand.php index 434fd31..1e5cc7e 100644 --- a/Console/Command/ListCommand.php +++ b/Console/Command/ListCommand.php @@ -52,8 +52,8 @@ protected function execute(InputInterface $input, OutputInterface $output) } } catch (ConfiguratorAdapterException $e) { $output->writeln('' . $e->getMessage() . ''); - return Command::FAILURE; + return 1; } - return Command::SUCCESS; + return 0; } } diff --git a/Console/Command/RunCommand.php b/Console/Command/RunCommand.php index 78f40bd..6161c8e 100644 --- a/Console/Command/RunCommand.php +++ b/Console/Command/RunCommand.php @@ -105,8 +105,8 @@ protected function execute(InputInterface $input, OutputInterface $output) } } catch (\Exception $e) { $output->writeln('' . $e->getMessage() . ''); - return Command::FAILURE; + return 1; } - return Command::SUCCESS; + return 0; } }