Inheritance: extends Crunz\Singleton
Beispiel #1
0
 /**
  * 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);
 }
Beispiel #2
0
 /**
  * Create an instance of Configuration class
  *
  * @return \Configuration\Configuration
  */
 public static function makeOne()
 {
     return Configuration::getInstance();
 }