Get configuration

@param $key

@return string
768026
public static function get( $key ) {

		if ( isset( self::$config[ strtolower( $key ) ] ) ) {
			return self::$config[ strtolower( $key ) ];
		} else {
			return '';
		}

	}
818063
public function getConfig($key = null) {
		$results = $this->_getConfig($key);
		if (empty($results)) {
			return $results;
		}

		$event = new CakeEvent('Model.afterFind', $this, [$results, true, $key]);
		$event->modParams = 0;
		$this->getEventManager()->dispatch($event);

		return $event->result;
	}
646730
public function getValueByKey($key)
    {
        $model = Configuration::whereConfigurationKey($key)->first();

        if (null === $model) {
            return null;
        }

        return $model->configuration_value;
    }
457649
public function getConfig(?string $key = null, ?string $subKey = null)
    {
        if ($key === null) {
            return $this->config;
        }
        $key = (string) $key;
        $subKey = $subKey === null ? null : (string) $subKey;
        if (array_key_exists($key, $this->config)) {
            if ($subKey !== null) {
                return array_key_exists($subKey, $this->config[$key]) 
                    ? $this->config[$key][$subKey] 
                    : null;
            }
            return $this->config[$key];
        }
        return null;
    }
423014
public function getConfig($key)
    {
        if (!isset($this->config[$key])) {
            throw new \Exception(sprintf('No config found for key: "%s"', $key));
        }

        return $this->config[$key];
    }
1146367
protected function getConfig($key = null, $default = null)
    {
        // check manually if a key is given and if it exists in the config
        // this has to be done to check for spoofed additional config keys so that null isn't returned
        if (!empty($key) && empty($this->config[$key])) {
            return $default;
        }

        return $key ? array_get($this->config, $key, $default) : $this->config;
    }
586650
protected function getConfigValue($key)
    {
        list($output) = $this->getSystemService()->execute($this->_('git config --global --get %s', $key));

        return trim($output);
    }
738250
public function get(string $key)
    {
        return isset($this->_configValues[$key])
            ? $this->_configValues[$key]
            : null;
    }
685757
protected function getConfigInstance($key)
    {
        $instance = $this->config($key);

        if (is_string($instance)) {
            return $this->app->make($instance);
        }

        return $instance;
    }
862874
final protected function getConfigValue(string $key)
    {
        $retval = false;

        if (isset($this->config[$key], $this->config[$key][ConfigurationInterface::KEY_VALUE])) {
            $retval = $this->config[$key][ConfigurationInterface::KEY_VALUE];
        } elseif (isset($this->config[$key])) {
            $retval = $this->config[$key];
        }

        return $retval;
    }
212543
public function getConfiguration($key = null) {
        if (!$key) {
            return $this->_configuration;
        }
        if (!array_key_exists($key, $this->_configuration)) {
            throw new Exception("'$key' is not a valid configuration key.");
        }
        return $this->_configuration[$key];
    }
847181
public function getConfig($key=null) {
        if($key && array_key_exists($key, $this->config)) {
            return $this->config[$key];
        }
        if($key && !array_key_exists($key, $this->config)) {
            throw new \Exception('Config item "'. $key .'" was not found');
        }

        return $this->config;
    }
181290
protected function getOptionOrConfig($key)
    {
        if ($option = $this->option($key)) {
            return $option;
        }

        return $this->config->get("laroute.{$key}");
    }
753402
public function getConfigurationValue($key, $default = null)
    {
        if (is_array($this->configuration) && array_key_exists($key, $this->configuration)) {
            return $this->configuration[$key];
        }

        return $default;
    }
1033808
public function get($key)
    {
        $yaml = $this->getContent();

        return isset($yaml['parameters']) && isset($yaml['parameters'][$key]) ? $yaml['parameters'][$key] : '';
    }
1209784
public static function configGet($key)
    {
		$data = self::getDbConnection()->fetchAssoc('SELECT value FROM config WHERE `class` = ? and `key` = ?', array( get_called_class(), $key ));
		if (!$data) return null;
		return unserialize($data['value']);
    }
519432
public function getConfig($key = null)
	{
		if (isLaravel5())
		{
			$configNameSpace = 'vendor.'.$this->packageVendor.'.'.$this->packageName.'.';
											//question ? result if true :(result is false)
			$key = $configNameSpace  . ($key ? '.'.$key : '');

			return $this->app['config']->get($key);
		}
	}