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