Skip to content

Commit

Permalink
Undefined constant Command::SUCCESS on magento 2.4.5 (close #18)
Browse files Browse the repository at this point in the history
  • Loading branch information
0m3r committed Jul 26, 2023
1 parent f376f01 commit d783fda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Console/Command/ModuleListCommand.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace Swissup\Core\Console\Command;

use Magento\Framework\Console\Cli;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
Expand Down Expand Up @@ -155,6 +156,6 @@ protected function execute(InputInterface $input, OutputInterface $output)

$table->render();

return Command::SUCCESS;
return Cli::RETURN_SUCCESS;
}
}
3 changes: 2 additions & 1 deletion Console/Command/ThemeCreateCommand.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace Swissup\Core\Console\Command;

use Magento\Framework\Console\Cli;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputArgument;
Expand Down Expand Up @@ -96,6 +97,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln('<success>New Local Swissup theme create done!</success>');
$output->writeln('<warn>Please run setup:upgrade from Magento CLI</warn>');

return Command::SUCCESS;
return Cli::RETURN_SUCCESS;
}
}

0 comments on commit d783fda

Please sign in to comment.