File tree 1 file changed +16
-16
lines changed
src/Foundation/Configuration
1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -34,20 +34,20 @@ public function withKernels()
34
34
* @param callable|null $using
35
35
* @return $this
36
36
*/
37
- // public function withExceptions(?callable $using = null)
38
- // {
39
- // $this->app->singleton(
40
- // \Illuminate\Contracts\Debug\ExceptionHandler::class,
41
- // \October\Rain\Foundation\Exception\Handler::class
42
- // );
43
-
44
- // $using ??= fn () => true;
45
-
46
- // $this->app->afterResolving(
47
- // \Illuminate\Foundation\Exceptions\Handler::class,
48
- // fn ($handler) => $using(new Exceptions($handler)),
49
- // );
50
-
51
- // return $this;
52
- // }
37
+ public function withExceptions (?callable $ using = null )
38
+ {
39
+ $ this ->app ->singleton (
40
+ \Illuminate \Contracts \Debug \ExceptionHandler::class,
41
+ \October \Rain \Foundation \Exception \Handler::class
42
+ );
43
+
44
+ $ using ??= fn () => true ;
45
+
46
+ $ this ->app ->afterResolving (
47
+ \Illuminate \Foundation \Exceptions \Handler::class,
48
+ fn ($ handler ) => $ using (new Exceptions ($ handler )),
49
+ );
50
+
51
+ return $ this ;
52
+ }
53
53
}
You can’t perform that action at this time.
0 commit comments