Conditions | 3 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | 3 | public function register() |
|
32 | { |
||
33 | 3 | if ($this->app->runningInConsole() && ! $this->app->runningUnitTests()) { |
|
34 | 1 | $this->app->singleton(ListenerContract::class, Listener::class); |
|
35 | |||
36 | 1 | $appExceptionHandler = $this->app->make(ExceptionHandlerContract::class); |
|
37 | |||
38 | 1 | $this->app->singleton( |
|
39 | 1 | ExceptionHandlerContract::class, |
|
40 | 1 | function ($app) use ($appExceptionHandler) { |
|
41 | 1 | return new ExceptionHandler($app, $appExceptionHandler); |
|
42 | 1 | } |
|
43 | ); |
||
44 | } |
||
45 | 3 | } |
|
46 | } |
||
47 |