Returns the registry scope.

@param  string $key

@return string
770573
public function getScope($key)
    {
        $scope = ('application' === $key) ? 'APPLICATION_CONFIG' : 'BUNDLE_CONFIG';

        if ($this->application->getContainer()->has('config.configurator')) {
            $scope = $this
                    ->application
                    ->getContainer()
                    ->get('config.configurator')
                    ->getRegistryScope($scope, $this->persistPerContext, $this->persistPerEnvironment)
            ;
        }

        return $scope;
    }
256685
public static function get(string $key): ?string
    {
        if (isset($_COOKIE) && array_key_exists($key, $_COOKIE)) {
            return Crypt::decrypt($_COOKIE[$key]);
        }

        return null;
    }
1164477
public function offsetGet($key) {

    $resolved_key = $this->arguments_spec->normalizeOptionName($key);
    if ($resolved_key === null) {
      if (isset($this->merged_arg_values[$key])) {
        return parent::offsetGet($key);
      }
    }

    if (isset($this->merged_arg_values[$resolved_key])) {
      return parent::offsetGet($resolved_key);
    }

    return null;
  }
279147
protected function getKey($key) {
		$key = '/' . $this->environment . '.' . $key;
		$key = str_replace('.', '/', $key);
		if (!empty($this->appName)) {
			$key = '/' . $this->appName . $key;
		}
		return $key;
	}
592090
public static function get($registry_key) {
		$key = array_key_convert_key($registry_key);
		$key2 = implode('.', $key);
		// if we need to fetch from application settings
		if ($key[0] == 'application') {
			array_shift($key);
			$result = \Application::get($key);
		} else {
			$result = array_key_get(self::$settings, $key);
			if (!isset($result)) {
				array_unshift($key, 'registry');
				array_unshift($key, 'numbers');
				$result = \Session::get($key);
			}
		}
		// load overrides from db
		if (\Db::$flag_db_loaded) {
			// see if we have an override
			if (!isset(self::$cached_registries)) {
				self::$cached_registries = \Object\ACL\Resources::getStatic('registries', 'primary') ?? [];
			}
			if (isset(self::$cached_registries[$key2])) {
				$result = self::$cached_registries[$key2]['value'];
			}
		}
		return $result;
	}
368521
protected function getUriFragment($key)
    {
        return isset($this->uriFragments[$key]) ? $this->uriFragments[$key] : null;
    }
557821
public static function get(string $key)
    {
        if (!self::$instance) {
            return null;
        }

        return self::$instance->engine->get($key);
    }
531759
protected function getContext($key)
    {
        if (GC_CLI) {
            return gplcart_array_get($this->context, $key);
        }

        return $this->session->get("install.context.$key");
    }
297813
public function get(string $key)
    {
        $key = $this->hashKey($key);
        if (\array_key_exists($key, $this->cache)) {
            $this->hits++;
            return $this->cache[$key];
        }
        $this->misses++;
        return null;
    }
1196749
public function get($key, $default = null)
    {
        $pointer = &$this->registry;
        $segments = explode('.', $key);

        do {
            $segment = array_shift($segments);

            if (isset($pointer[$segment])) {
                $pointer =& $this->move($pointer, $value, $segments, $segment);
            } else {
                $value = $default;
                break;
            }
        } while (false === empty($segments));

        return $value;
    }
487432
public function getDefinition($key)
    {
        if (isset($this->definitions['instance'][$key])) {
            return $this->definitions['instance'][$key];
        }

        return $this->definitions['instance'][$this->aliases[$key]];
    }
126849
protected function getUrlForKey($key)
    {
        return isset($this->urls[$key]) ? $this->urls[$key] : null;
    }
1123190
public function get_restriction($key = 0)
	{
		$restrictions = $this->get_restrictions();
		if (isset($restrictions[$key]))
		{
			return $restrictions[$key];
		}

		return null;
	}
142145
public function get($key) {
		// If the key is in factories the return new instance of class
		if (isset($this->factories[$key])) {
			return $this->factories[$key]();
		}

		// If the key is not in instances
		if (!isset($this->instances[$key])) {
			// If the key is in registry, instanciate the corresponding class and add it in instances
			if (isset($this->registry[$key])) {
				$this->instances[$key] = $this->registry[$key]();
			} else {
				// If the key is not in registry, instanciate the corresponding class and add it in instances
				$this->instances[$key] = self::newInstance($key);
			}
		}

		return $this->instances[$key];
	}
952100
public function getSettingsField($key)
    {
        $pos = strpos($key, $this->keySeparator);

        if ($pos) {
            return substr($key, $pos + strlen($this->keySeparator));
        }

        return null;
    }
246641
public function get($key)
    {
        $key       = (string)$key;
        $value     = null;
        $this->hit = false;

        if (\array_key_exists($key, self::$registry)) {
            if (self::$registry[$key]['expires'] >= (new DateTime())) {
                $this->hit = true;
                return $this->restoreDataStructure($key);
            }
            unset(self::$registry[$key]);
        }

        return $value;
    }
1338472
public function get($key, $default = null)
    {
        if (empty($key)) {
            return $default;
        }

        $parts = explode(".", $key);
        $file = array_shift($parts);

        if (!isset($this->registry[$file])) {
            $this->registry[$file] = $this->discover($file);
        }
        $res = $this->parse($key);

        return is_null($res) ? $default : $res;
    }