init() public method

Initializes this rule.
public init ( )
Example #1
0
 /**
  * @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();
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     foreach ($this->resolvers as $key => $resolver) {
         if (!$resolver instanceof RouteResolverInterface) {
             $this->resolvers[$key] = Yii::createObject($resolver);
         }
     }
 }
Example #3
0
 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;
 }