- self::$basePath = new BasePath(dirname(__DIR__));
- $configLoader = new ConfigFileLoader(self::$basePath->getPath());
- $configFactory = new ConfigFactory();
- self::$configCache = $configFactory->createCache($configLoader);
- self::$profiler = new Profiler(self::$configCache);
- self::$dba = new Database(self::$configCache, self::$profiler, new NullLogger(), $_SERVER);
- self::$mode = new Mode(self::$basePath, self::$dba, self::$configCache);