public function getController(Request $request)
 {
     $this->request = $request;
     try {
         $controller = $this->resolver->getController($request);
     } catch (\Exception $ex) {
         $controller = parent::getController($request);
     }
     return $controller;
 }
 public function getController(SymfonyRequest $request)
 {
     $callable = parent::getController($request);
     if (is_array($callable)) {
         if (isset($callable[0]) && $callable[0] instanceof ControllerInterface) {
             $callable[0]->setRequest($request);
             $callable[0]->setApplication($this->app);
         }
     }
     return $callable;
 }