Exemplo n.º 1
0
 protected static function setConfigPath()
 {
     if (empty(self::$basePath)) {
         self::setBasePath();
     }
     $configPath = self::$basePath . '..' . DIRECTORY_SEPARATOR . self::CONFIG_FOLDER . DIRECTORY_SEPARATOR;
     if (!is_dir($configPath)) {
         throw new \Exception('could not find config folder');
     }
     self::$configPath = $configPath;
 }