src/CodebaseServiceProvider.php
/**
     * Register the application services.
     *
     * @return void
     */
Register the application services.
@return void
Register the application services . @return void
public function register()
    {
        $this->app->singleton('Airbrake\Instance', function ($app) {
            $airbrake = new Notifier([
                'projectId' => config('airbrake.id'),
                'projectKey' => config('airbrake.key'),
                'appVersion' => config('airbrake.appVersion'),
                'environment' => config('airbrake.environment'),
            ]);
            return $airbrake;
        });
        $handler = $this->app->make('Illuminate\Contracts\Debug\ExceptionHandler');
        $this->app->instance(
            'Illuminate\Contracts\Debug\ExceptionHandler',
            new CodebaseExceptionHandler($handler, $this->app)
        );
    }
public function register ( ) { $ this -> app -> singleton ( 'Airbrake\Instance' , function ( $ app ) { $ airbrake = new Notifier ( [ 'projectId' => config ( 'airbrake.id' ) , 'projectKey' => config ( 'airbrake.key' ) , 'appVersion' => config ( 'airbrake.appVersion' ) , 'environment' => config ( 'airbrake.environment' ) , ] ) ; return $ airbrake ; } ) ; $ handler = $ this -> app -> make ( 'Illuminate\Contracts\Debug\ExceptionHandler' ) ; $ this -> app -> instance ( 'Illuminate\Contracts\Debug\ExceptionHandler' , new CodebaseExceptionHandler ( $ handler , $ this -> app ) ) ; }
Register the application services.
Register the application services .