public static function initStaticApp()
    {
        $config = static::getConfigReader()->get('appStatic');
        $config['class'] = StaticApplicationInterface::class;
        //Use config after creation, so Reaction::$app will be available inside StaticApplicationInterface components
        $appLateConfig = [];
        $appLateConfigKeys = ['components'];
        foreach ($appLateConfigKeys as $appKey) {
            if (isset($config[$appKey])) {
                $appLateConfig[$appKey] = $config[$appKey];
                unset($config[$appKey]);
            }
        }
        static::$app = static::create($config);
        Container::setDefaultServiceLocator(static::$app);
        if (!empty($appLateConfig)) {
            static::configure(static::$app, $appLateConfig);
        }
    }
public static function initStaticApp()
    {
        $config = static::getConfigReader()->get('appStatic');
        $config['class'] = StaticApplicationInterface::class;
        //Use config after creation, so Reaction::$app will be available inside StaticApplicationInterface components
        $appLateConfig = [];
        $appLateConfigKeys = ['components'];
        foreach ($appLateConfigKeys as $appKey) {
            if (isset($config[$appKey])) {
                $appLateConfig[$appKey] = $config[$appKey];
                unset($config[$appKey]);
            }
        }
        static::$app = static::create($config);
        Container::setDefaultServiceLocator(static::$app);
        if (!empty($appLateConfig)) {
            static::configure(static::$app, $appLateConfig);
        }
    }
public static function initStaticApp ( ) { $ config = static :: getConfigReader ( ) -> get ( 'appStatic' ) ; $ config [ 'class' ] = StaticApplicationInterface :: class ; //Use config after creation, so Reaction::$app will be available inside StaticApplicationInterface components $ appLateConfig = [ ] ; $ appLateConfigKeys = [ 'components' ] ; foreach ( $ appLateConfigKeys as $ appKey ) { if ( isset ( $ config [ $ appKey ] ) ) { $ appLateConfig [ $ appKey ] = $ config [ $ appKey ] ; unset ( $ config [ $ appKey ] ) ; } } static :: $ app = static :: create ( $ config ) ; Container :: setDefaultServiceLocator ( static :: $ app ) ; if ( ! empty ( $ appLateConfig ) ) { static :: configure ( static :: $ app , $ appLateConfig ) ; } }
Initialize application object
Initialize application object