Example #1
0
 public function getConfig($reset = false)
 {
     if (isset(self::$config) && !$reset) {
         return self::$config;
     }
     $file = $this->getVar('project') ? $this->getVar('project') : self::ConfigFilename;
     $file = self::ConfigPath . $file . '.json';
     $this->checkFile($file);
     self::$config = json_decode(file_get_contents($file), True);
     return self::$config;
 }
Example #2
0
 public function getConfig($reset = false)
 {
     if (isset(self::$config) && !$reset) {
         return self::$config;
     }
     $file = self::ConfigFilename;
     $this->checkFile($file);
     self::$config = json_decode(file_get_contents($file), True);
     self::$config['libs']['depender-client'] = array();
     self::$config['libs']['depender-client']['scripts'] = 'client/Source';
     return self::$config;
 }