public function bootstrap ($webDir, array $config = [])
    {
        $baseDir = dirname($webDir);
        $this["gluggi.config"] = $this->resolveConfig($config);
        $this["gluggi.baseDir"] = $baseDir;

        $this->registerProviders();
        $this->registerCoreTwigNamespace();
        $this->registerModelsAndTwigLayoutNamespaces($baseDir);
        $this->registerControllers();
        $this->registerTwigExtensions();
        $this->defineCoreRouting();
    }
public function bootstrap ($webDir, array $config = [])
    {
        $baseDir = dirname($webDir);
        $this["gluggi.config"] = $this->resolveConfig($config);
        $this["gluggi.baseDir"] = $baseDir;

        $this->registerProviders();
        $this->registerCoreTwigNamespace();
        $this->registerModelsAndTwigLayoutNamespaces($baseDir);
        $this->registerControllers();
        $this->registerTwigExtensions();
        $this->defineCoreRouting();
    }
public function bootstrap ( $ webDir , array $ config = [ ] ) { $ baseDir = dirname ( $ webDir ) ; $ this [ "gluggi.config" ] = $ this -> resolveConfig ( $ config ) ; $ this [ "gluggi.baseDir" ] = $ baseDir ; $ this -> registerProviders ( ) ; $ this -> registerCoreTwigNamespace ( ) ; $ this -> registerModelsAndTwigLayoutNamespaces ( $ baseDir ) ; $ this -> registerControllers ( ) ; $ this -> registerTwigExtensions ( ) ; $ this -> defineCoreRouting ( ) ; }
Bootstraps the complete application

@param string $webDir the path to the web dir
@param array $config the config
Bootstraps the complete application