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();
    }