作者 竞泽

fix:err handle

... ... @@ -2,24 +2,8 @@
namespace Lackoxygen\ExceptionPush\Exception;
use Lackoxygen\ExceptionPush\Contracts\ExceptionHandler;
use App\Exceptions\Handler as BaseHandler;
class Handler implements ExceptionHandler
class Handler extends BaseHandler
{
public function handle(\Throwable $e)
{
app('exception.push')->boot();
}
public function render(\Throwable $e)
{
app('exception.push')->boot();
}
public function report(\Throwable $e)
{
app('exception.push')->boot();
}
}
... ...
... ... @@ -2,8 +2,8 @@
namespace Lackoxygen\ExceptionPush;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Support\ServiceProvider;
use Lackoxygen\ExceptionPush\Contracts\ExceptionHandler;
use Lackoxygen\ExceptionPush\Exception\Handler;
class ExceptionPushProvider extends ServiceProvider
... ... @@ -13,6 +13,6 @@ class ExceptionPushProvider extends ServiceProvider
public function register()
{
$this->app->singleton(ExceptionHandler::class, Handler::class);
$this->app->singleton('exception.push', ExceptionHandler::class);
$this->app->singleton('exception.push', ExceptionPush::class);
}
}
... ...