web/BaseRoutesBuilder.php
public static function buildRoutes($routeConfig, $app = null)
    {
        $app = empty($app) ? Yii::$app : $app;
        $rules = static::collectRoutes($routeConfig, $app);
        $app->urlManager->addRules($rules, $routeConfig['append']);
    }
public static function buildRoutes($routeConfig, $app = null)
    {
        $app = empty($app) ? Yii::$app : $app;
        $rules = static::collectRoutes($routeConfig, $app);
        $app->urlManager->addRules($rules, $routeConfig['append']);
    }
public static function buildRoutes ( $ routeConfig , $ app = null ) { $ app = empty ( $ app ) ? Yii :: $ app : $ app ; $ rules = static :: collectRoutes ( $ routeConfig , $ app ) ; $ app -> urlManager -> addRules ( $ rules , $ routeConfig [ 'append' ] ) ; }
Build routes by routes config.
@param array $routeConfig
@param yii\base\Application $app
Build routes by routes config .