public function onConfigLoaded(array &$config)
    {
        $this->defineConstants();
        $this->loadScriptedConfig($config);
        $this->loadRootDirConfig($config);

        if (!isset($GLOBALS['config'])) {
            $GLOBALS['config'] = &$config;
        }
    }