/** * Return a configuration value by key * * @param string $key * * @return string */ protected function config($key) { if (is_null($this->config)) { return; } return $this->config->get($key); }
/** * Create an instance of Configuration class * * @return \Configuration\Configuration */ public static function makeOne() { return Configuration::getInstance(); }