/** * 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; }
/** * 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; }
static function getCrestEndpoint() { return \Base::instance()->get('PATHFINDER.API.CCP_CREST'); }