作者 竞泽

feat:rename

<?php
namespace Lackoxygen\ExceptionPush\Contracts;
interface ExceptionHandler
{
/**
* @param \Throwable $e
*
* @return mixed
*/
public function handle(\Throwable $e);
/**
* @param \Throwable $e
*
* @return mixed
*/
public function render(\Throwable $e);
/**
* @param \Throwable $e
*
* @return mixed
*/
public function report(\Throwable $e);
}
... ... @@ -11,6 +11,6 @@ class Handler extends BaseHandler
{
parent::report($e); // TODO: Change the autogenerated stub
app('exception.push')->boot($e);
app('exception.push')->report($e);
}
}
... ...
... ... @@ -66,13 +66,16 @@ class ExceptionPush
/**
* @return void
*/
public function boot(\Throwable $e)
public function report(\Throwable $e)
{
$this->parser->extract($e);
$this->dispatch($this->format());
}
/**
* @return array
*/
protected function format(): array
{
$formatter = Formatter::callback();
... ...