public static function getConfig()
{
if (!self::$config) {
try {
$file = \Pimcore\Config::locateConfigFile("extensions.php");
if (file_exists($file)) {
self::$config = new \Zend_Config(include $file, true);
} else {
throw new \Exception($file . " doesn't exist");
}
} catch (\Exception $e) {
self::$config = new \Zend_Config([], true);
}
}
return self::$config;
}