From d783fda0d72bf20b26154f15e32b7bcd6bc1fc25 Mon Sep 17 00:00:00 2001 From: Alexander Kras'ko <0m3r.mail@gmail.com> Date: Wed, 26 Jul 2023 15:04:14 +0300 Subject: [PATCH] Undefined constant Command::SUCCESS on magento 2.4.5 (close #18) --- Console/Command/ModuleListCommand.php | 3 ++- Console/Command/ThemeCreateCommand.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Console/Command/ModuleListCommand.php b/Console/Command/ModuleListCommand.php index 340261b..da1a00f 100644 --- a/Console/Command/ModuleListCommand.php +++ b/Console/Command/ModuleListCommand.php @@ -1,6 +1,7 @@ render(); - return Command::SUCCESS; + return Cli::RETURN_SUCCESS; } } diff --git a/Console/Command/ThemeCreateCommand.php b/Console/Command/ThemeCreateCommand.php index 9814fb4..d921c2c 100644 --- a/Console/Command/ThemeCreateCommand.php +++ b/Console/Command/ThemeCreateCommand.php @@ -1,6 +1,7 @@ writeln('New Local Swissup theme create done!'); $output->writeln('Please run setup:upgrade from Magento CLI'); - return Command::SUCCESS; + return Cli::RETURN_SUCCESS; } }