/**
  * Handle an incoming request.
  *
  * @param Request $request
  * @param Response $response
  * @param callable $next
  * @return mixed
  */
 public function __invoke(Request $request, Response $response, callable $next = null)
 {
     $this->router->route($request);
     return $this->router->getResponse();
 }