Esempio n. 1
0
 /**
  * get environment specific configuration data
  * @param $key
  * @return mixed|null
  */
 static function getEnvironmentData($key)
 {
     $f3 = \Base::instance();
     $environment = $f3->get('PATHFINDER.ENVIRONMENT.SERVER');
     $environmentKey = 'PATHFINDER.ENVIRONMENT[' . $environment . '][' . $key . ']';
     $data = null;
     if ($f3->exists($environmentKey)) {
         $data = $f3->get($environmentKey);
     }
     return $data;
 }
Esempio n. 2
0
 /**
  * get required MySQL variable value
  * @param $key
  * @return string|null
  */
 static function getRequiredMySqlVariables($key)
 {
     $f3 = \Base::instance();
     $requiredMySqlVarKey = 'REQUIREMENTS[MYSQL][VARS][' . $key . ']';
     $data = null;
     if ($f3->exists($requiredMySqlVarKey)) {
         $data = $f3->get($requiredMySqlVarKey);
     }
     return $data;
 }
Esempio n. 3
0
 static function getCrestEndpoint()
 {
     return \Base::instance()->get('PATHFINDER.API.CCP_CREST');
 }