Skip to content

5.0.0

Compare
Choose a tag to compare
@samsonasik samsonasik released this 11 Dec 05:15
· 39 commits to master since this release
5.0.0
a0e686c

Released: ErrorHeroModule 5.0.0

Latest Version ci build Code Coverage PHPStan Downloads

Feature

✔️ Support laminas-cli out of the box (for laminas-servicemanager container)

The usage for laminas-cli can just extends the ErrorHeroModule\Command\BaseLoggingCommand

namespace Application\Command;

use ErrorHeroModule\Command\BaseLoggingCommand;
use Exception;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

final class HelloWorld extends BaseLoggingCommand
{
    protected function execute(InputInterface $input, OutputInterface $output): int
    {
        throw new Exception('some exception logged to DB');
    }
}

and register to your service like in the documentation, that's it!

✔️ Support PHP 8.1+

Removal

  • Drop support of laminas-mvc-console
  • Drop support php 8.0

It took a lot of works to make it reality 💪. You can support my work by sponsor me, thank you 💖 💖 💖 https://github.com/sponsors/samsonasik