/** * @inheritdoc */ public function init() { $this->pattern = $this->dashboardId . '/<' . ConfigComponent::FIRST_SEGMENT . '>/<' . ConfigComponent::SECOND_SEGMENT . '>/<' . ConfigComponent::THIRD_SEGMENT . '>'; $this->route = $this->dashboardId . '/default/index'; $this->defaults = [ConfigComponent::THIRD_SEGMENT => 0]; parent::init(); }
/** * @inheritdoc */ public function init() { parent::init(); foreach ($this->resolvers as $key => $resolver) { if (!$resolver instanceof RouteResolverInterface) { $this->resolvers[$key] = Yii::createObject($resolver); } } }
public function init() { $this->addLanguagePrefixToPattern(); parent::init(); }
/** * @inheritdoc */ public function init() { parent::init(); // This url is used only for parsing. $this->mode = static::PARSING_ONLY; }