public function addRoutes()
    {
        list($rulesBefore, $rulesAfter) = $this->collectRoutes();
        Yii::$app->urlManager->addRules($rulesBefore, false);
        Yii::$app->urlManager->addRules($rulesAfter, true);
        //echo'<pre>'.RoutesInfo::showRoutes($this->uniqueId).'</pre>';exit;
    }
public function addRoutes()
    {
        list($rulesBefore, $rulesAfter) = $this->collectRoutes();
        Yii::$app->urlManager->addRules($rulesBefore, false);
        Yii::$app->urlManager->addRules($rulesAfter, true);
        //echo'<pre>'.RoutesInfo::showRoutes($this->uniqueId).'</pre>';exit;
    }
public function addRoutes ( ) { list ( $ rulesBefore , $ rulesAfter ) = $ this -> collectRoutes ( ) ; Yii :: $ app -> urlManager -> addRules ( $ rulesBefore , false ) ; Yii :: $ app -> urlManager -> addRules ( $ rulesAfter , true ) ; //echo'<pre>'.RoutesInfo::showRoutes($this->uniqueId).'</pre>';exit; }
Add module routes defined in config.
Add module routes defined in config .