|
...
|
...
|
@@ -10,9 +10,30 @@ class ExceptionPushProvider extends ServiceProvider |
|
|
|
{
|
|
|
|
protected array $commands = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
$configPath = __DIR__.'/../publish/exception.push.php';
|
|
|
|
$this->publishes([
|
|
|
|
$configPath => config_path('exception.push.php')
|
|
|
|
], 'lackoxygen-exception-push');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
$this->app->singleton(ExceptionHandler::class, Handler::class);
|
|
|
|
$this->app->singleton('exception.push', ExceptionPush::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function provides(): array
|
|
|
|
{
|
|
|
|
return ['exception.push'];
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|