core/web/Bootstrap.php
public function beforeRun($app)
    {
        foreach ($app->tags as $name => $config) {
            TagParser::inject($name, $config);
        }
        
        foreach ($this->getModules() as $id => $module) {
            foreach ($module->urlRules as $key => $rule) {
                if (is_string($key)) {
                    $this->_urlRules[$key] = $rule;
                } else {
                    $this->_urlRules[] = $rule;
                }
            }
            
            // get all api rules (since 1.0.10)
            foreach ($module->apiRules as $endpoint => $rule) {
                $this->_apiRules[$endpoint] = $rule;
            }
            
            /**
             * 'api-admin-user' => 'admin\apis\UserController',
             * 'api-cms-navcontainer' => 'admin\apis\NavContainerController'
             */
            foreach ($module->apis as $alias => $class) {
                $this->_apis[$alias] = ['class' => $class, 'module' => $module];
            }
            
            foreach ($module->tags as $name => $config) {
                TagParser::inject($name, $config);
            }
        }
    }
public function beforeRun($app)
    {
        foreach ($app->tags as $name => $config) {
            TagParser::inject($name, $config);
        }
        
        foreach ($this->getModules() as $id => $module) {
            foreach ($module->urlRules as $key => $rule) {
                if (is_string($key)) {
                    $this->_urlRules[$key] = $rule;
                } else {
                    $this->_urlRules[] = $rule;
                }
            }
            
            // get all api rules (since 1.0.10)
            foreach ($module->apiRules as $endpoint => $rule) {
                $this->_apiRules[$endpoint] = $rule;
            }
            
            /**
             * 'api-admin-user' => 'admin\apis\UserController',
             * 'api-cms-navcontainer' => 'admin\apis\NavContainerController'
             */
            foreach ($module->apis as $alias => $class) {
                $this->_apis[$alias] = ['class' => $class, 'module' => $module];
            }
            
            foreach ($module->tags as $name => $config) {
                TagParser::inject($name, $config);
            }
        }
    }
public function beforeRun ( $ app ) { foreach ( $ app -> tags as $ name => $ config ) { TagParser :: inject ( $ name , $ config ) ; } foreach ( $ this -> getModules ( ) as $ id => $ module ) { foreach ( $ module -> urlRules as $ key => $ rule ) { if ( is_string ( $ key ) ) { $ this -> _urlRules [ $ key ] = $ rule ; } else { $ this -> _urlRules [ ] = $ rule ; } } // get all api rules (since 1.0.10) foreach ( $ module -> apiRules as $ endpoint => $ rule ) { $ this -> _apiRules [ $ endpoint ] = $ rule ; } /**
             * 'api-admin-user' => 'admin\apis\UserController',
             * 'api-cms-navcontainer' => 'admin\apis\NavContainerController'
             */ foreach ( $ module -> apis as $ alias => $ class ) { $ this -> _apis [ $ alias ] = [ 'class' => $ class , 'module' => $ module ] ; } foreach ( $ module -> tags as $ name => $ config ) { TagParser :: inject ( $ name , $ config ) ; } } }
Before bootstrap run process.

@see \luya\base\BaseBootstrap::beforeRun()
Before bootstrap run process .