for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mosaic\Exceptions;
use Mosaic\Common\Components\AbstractComponent;
use Mosaic\Exceptions\Providers\BoobooProvider;
use Mosaic\Exceptions\Providers\WhoopsProvider;
/**
* @method static $this whoops()
* @method static $this booboo()
*/
final class Component extends AbstractComponent
{
* @var array
protected $handlers = [];
protected $formatters = [];
* @return array
public function resolveWhoops() : array
return [
new WhoopsProvider($this->handlers, $this->formatters)
];
}
public function resolveBooboo() : array
new BoobooProvider($this->handlers, $this->formatters)
* @param callable $callback
public function resolveCustom(callable $callback) : array
return $callback();
* @param mixed ...$handlers
* @return $this
public function handlers(...$handlers)
$this->handlers = $handlers;
return $this;
* @param mixed ...$formatters
public function formatters(...$formatters)
$this->formatters = $formatters;