Example #1
0
 public function __invoke(Request $request, Response $response, callable $next = null)
 {
     try {
         return $next($request, $response);
     } catch (\Exception $e) {
         return WhoopsRunner::handle($e);
     }
 }
 public function __invoke($error, Request $request, Response $response, callable $out)
 {
     return WhoopsRunner::handle($error, $request);
 }