예제 #1
0
 /**
  * Return an instance of the config
  *
  * @return The config instance
  */
 protected static function getConfig()
 {
     // If the current config is null
     if (is_null(self::$config)) {
         // Loading it
         self::$config = (require 'config.php');
     }
     // Returning the loaded config
     return self::$config;
 }