for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mosaic\Exceptions\Providers;
use Interop\Container\Definition\DefinitionProviderInterface;
use Mosaic\Exceptions\Runner;
abstract class ExceptionHandlerProvider implements DefinitionProviderInterface
{
/**
* @var array
*/
protected $formatters;
protected $handlers;
* @param array $handlers
* @param array $formatters
public function __construct(array $handlers = [], array $formatters = [])
$this->formatters = $formatters;
$this->handlers = $handlers;
}
* Returns the definition to register in the container.
*
* Definitions must be indexed by their entry ID. For example:
* return [
* 'logger' => ...
* 'mailer' => ...
* ];
* @return array
public function getDefinitions()
$runner = $this->getRunner();
$runner->register();
return [
Runner::class => $runner
];
* @return Runner
abstract public function getRunner() : Runner;