/** * Setup the Controller's parameters and method name. * * @param \Routing\Route $route * @return void */ protected function setupController(Route $route, Request $request) { $action = $route->getAction(); if (isset($action['controller'])) { list($class, $method) = explode('@', $action['controller']); $this->method = $method; } $this->params = $route->getParams(); }
/** * Add the route to any look-up tables if necessary. * * @param \Routing\Route $route * @return void */ protected function addLookups($route) { $action = $route->getAction(); if (isset($action['as'])) { $this->nameList[$action['as']] = $route; } if (isset($action['controller'])) { $this->addToActionList($action, $route); } }
/** * Merge the group stack with the controller action. * * @param \Routing\Route $route * @return void */ protected function mergeController($route) { $action = $this->mergeWithLastGroup($route->getAction()); $route->setAction($action); }