/** * @return Controller */ protected function makeControllerChain() { $this->controllerName = self::DEFAULT_CONTROLLER; if ($this->request->hasAttachedVar('area') && $this->request->getAttachedVar('area') && ClassUtils::isClassName($this->request->getAttachedVar('area'))) { $this->controllerName = $this->request->getAttachedVar('area'); } return new $this->controllerName(); }
public function import($scope) { if (!($result = parent::import($scope))) { return $result; } if (!ClassUtils::isClassName($scope[$this->name]) || !$this->classExists($scope[$this->name]) || $this->ofClassName && !ClassUtils::isInstanceOf($scope[$this->name], $this->ofClassName)) { $this->value = null; return false; } return true; }