Returns a config value by key, or null if it does not exist.

@param string $key
@return null|mixed
14630
protected function getListifyConfigValue($key)
    {
        return array_key_exists($key, $this->listifyConfig) ? $this->listifyConfig[ $key ] : null;
    }
1145722
public function get($key)
    {
        return array_key_exists($key, $this->vars) ? $this->vars[$key] : null;
    }
557441
private function get($key, $default = null)
    {
        if ( ! empty($this->config[$key])) {
            return $this->config[$key];
        }

        if (function_exists('config')) {
            if (null !== (config($key))) {
                return config($key);
            }
        }
        
        return $default;
    }
642439
public function getConfigList($key = null)
    {
        if (is_null($key)) {
            return $this->configList; // no key requested, return the entire configuration bag
        } elseif (empty($this->configList[$key])) {
            return null; // no such key
        } else {
            return $this->configList[$key]; // return the requested key
        }
    }
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;
	}
768026
public static function get( $key ) {

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

	}
658512
protected function iterateConfig(string $key)
    {
        $result = $this->config;

        foreach (explode('.', $key) as $p) {
            if (!isset($result[$p])) {
                return null;
            }

            $result = $result[$p];
        }

        return $result;
    }
1094684
public static function get($key)
    {
        return isset(self::$config[$key]) ? self::$config[$key] : null;
    }
1248433
public static function get( $key = null ) {
		$configs = self::$configs;
		if ( $key ) {
			$configs = ! empty( self::$configs[ $key ] ) ? self::$configs[ $key ] : null;
		} else {
			$configs = self::$configs;
		}

		return $configs;
	}
1357766
private function getConfig($key)
    {
        if (!array_key_exists($key, $this->instConfig))
            return null;
        else
            return $this->instConfig[$key];
    }
593535
protected function get($key)
    {
        $this->checkForNonEmptyKey($key);
        if (!isset($this->getBackEndUser()->uc[self::PHPUNIT_SETTINGS_KEY][$key])) {
            return null;
        }

        return $this->getBackEndUser()->uc[self::PHPUNIT_SETTINGS_KEY][$key];
    }
871985
public static function config($key)
    {
        $app = Strata::app();
        if (!is_null($app)) {
            return $app->getConfig($key);
        }
    }
149279
public function getParamValue($key)
    {
        $value = null;
        if (is_array($param = $this->getParam($key))) {
            $value = $param['value'];
        }

        return $value;
    }
593096
public function get($key, $name = null)
    {
        if ($name) {
            return array_key_exists($name, $this->config[$key]) ? $this->config[$key][$name] : null;
        } else {
            return $this->has($key) ? $this->config[$key] : null;
        }
    }
713533
public function getConfig($key) {
    if (isset($this->config[$key])) {
      return $this->config[$key];
    }
    return FALSE;
  }
526595
public function get(string $key = null)
    {
        if (empty($key)) {
            return $this->settings;
        }

        if (\strpos($key, '.') != false) {
            return $this->getNested($key);
        }

        if ($this->has($key)) {
            return $this->settings[$key];
        }

        return null;
    }
998347
public function getConfig($key = null, $default = null)
    {
        $name = $this->current ?: 'default';

        $configs = $this->configs[$name];
        if ($key === null) {
            return $configs;
        }

        return isset($configs[$key]) ? $configs[$key] : $default;
    }