first commit
This commit is contained in:
20
bundles/KupShop/KupShopBundle/Config.php
Normal file
20
bundles/KupShop/KupShopBundle/Config.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace KupShop\KupShopBundle;
|
||||
|
||||
use KupShop\KupShopBundle\Util\Compat\ConfigLoader;
|
||||
|
||||
class Config
|
||||
{
|
||||
protected static ConfigLoader $instance;
|
||||
|
||||
public static function &get(): ConfigLoader
|
||||
{
|
||||
if (!isset(self::$instance)) {
|
||||
global $cfg;
|
||||
self::$instance = new ConfigLoader($cfg);
|
||||
}
|
||||
|
||||
return self::$instance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user