original_string: 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;
      }
code: 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;
      }
code_tokens: 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; }
docstring: Add module routes defined in config.
docstring_tokens: Add module routes defined in config .