ExceptionPushProvider.php
472 字节
<?php
namespace Lackoxygen\ExceptionPush;
use Illuminate\Support\ServiceProvider;
use Lackoxygen\ExceptionPush\Contracts\ExceptionHandler;
use Lackoxygen\ExceptionPush\Exception\Handler;
class ExceptionPushProvider extends ServiceProvider
{
protected array $commands = [];
public function register()
{
$this->app->singleton(ExceptionHandler::class, Handler::class);
$this->app->singleton('exception.push', ExceptionHandler::class);
}
}