Exemplo n.º 1
0
 /**
  * do the controller
  *
  * @param  routing config
  */
 public function controller($config)
 {
     $tplData = $this->getTpl($config);
     if ($tplData instanceof Response || $tplData instanceof \RedirectResponse || $tplData instanceof \JsonResponse) {
         $this->container->setResponse($tplData);
     } else {
         $this->container->setResponse(new Response($tplData));
     }
 }