Example #1
0
 public function __construct()
 {
     if (file_exists(APP_PATH . 'config' . DIRECTORY_SEPARATOR . ENVIRONMENT . DIRECTORY_SEPARATOR . 'config.php')) {
         require APP_PATH . 'config' . DIRECTORY_SEPARATOR . ENVIRONMENT . DIRECTORY_SEPARATOR . 'config.php';
     } else {
         require APP_PATH . 'config' . DIRECTORY_SEPARATOR . 'config.php';
     }
     self::$configArray = $config;
 }