public function controller($name, $controller, Mapper $mapper) { $this->router->addController($name, $controller); $this->router->addMapper($mapper); }