public function bootstrap()
    {
        $config = Container::getConfig();
        $commonConfigFile = APPLICATION_PATH . '/App/' . Router::getDefaultControllerName(true) . '/Config/application.php';
        $config->appendConfig(require $commonConfigFile);
        $bootstrapFile = APPLICATION_PATH . '/App/' . Router::getDefaultControllerName(true) . '/Bootstrap.php';
        if (!file_exists($bootstrapFile)) {
            throw new ArchException('Bootstrap file ' . $bootstrapFile . ' is needed');
        }
        
        //self::debug('Begin bootstrap');
        Container::getBootstrap()->bootstrap();
        //self::debug('End bootstrap');
        return $this;
    }
public function bootstrap()
    {
        $config = Container::getConfig();
        $commonConfigFile = APPLICATION_PATH . '/App/' . Router::getDefaultControllerName(true) . '/Config/application.php';
        $config->appendConfig(require $commonConfigFile);
        $bootstrapFile = APPLICATION_PATH . '/App/' . Router::getDefaultControllerName(true) . '/Bootstrap.php';
        if (!file_exists($bootstrapFile)) {
            throw new ArchException('Bootstrap file ' . $bootstrapFile . ' is needed');
        }
        
        //self::debug('Begin bootstrap');
        Container::getBootstrap()->bootstrap();
        //self::debug('End bootstrap');
        return $this;
    }
public function bootstrap ( ) { $ config = Container :: getConfig ( ) ; $ commonConfigFile = APPLICATION_PATH . '/App/' . Router :: getDefaultControllerName ( true ) . '/Config/application.php' ; $ config -> appendConfig ( require $ commonConfigFile ) ; $ bootstrapFile = APPLICATION_PATH . '/App/' . Router :: getDefaultControllerName ( true ) . '/Bootstrap.php' ; if ( ! file_exists ( $ bootstrapFile ) ) { throw new ArchException ( 'Bootstrap file ' . $ bootstrapFile . ' is needed' ) ; } //self::debug('Begin bootstrap'); Container :: getBootstrap ( ) -> bootstrap ( ) ; //self::debug('End bootstrap'); return $ this ; }
Configuration + Bootstraping
@return $this
@throws ArchException
Configuration + Bootstraping