5.0.0
Released: ErrorHeroModule 5.0.0
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