Implements getAssetUrl function

@param string $key
@return string
496689
public static function getAssetUrl($key)
  {
    $root =  __DIR__
      . DIRECTORY_SEPARATOR .'..'
      . DIRECTORY_SEPARATOR .'..'
      . DIRECTORY_SEPARATOR .'assets/';
    switch ($key) {
      case 'htaccess':
        return $root . 'templates/htaccess.tpl';
      case 'read':
        return $root . 'templates/read.php.tpl';
    }
    return null;
  }
900518
private function getThumbnailsTargetUploadFilepath($key)
    {
        $absoluteThumbnailTargetPath = implode('/', array_filter([
            rtrim($this->results['path'], '/'), (! $this->suffix ? trim($key) : ''),
        ]));

        $this->createDirectoryIfNotExists($absoluteThumbnailTargetPath);

        $resizedBasename = implode('_', [
            $this->results['basename'], $key,
        ]);

        if (! $this->suffix) {
            $resizedBasename = $this->results['basename'];
        }

        $resizedBasename .= '.'.$this->results['original_extension'];

        return implode('/', [$absoluteThumbnailTargetPath, $resizedBasename]);
    }
826049
private function getCode(string $key): string
    {
        $ret = '';

        $this->checkResource($key);

        /** @var string[] $resources */
        $resources = $this->asseticNodes[$key];
        foreach ($resources as $resource) {
            $ret .= $this->resourceToString($resource);
        }

        return $ret;
    }
976471
public function get($key)
	{
		$value = wincache_ucache_get($this->prefix.$key);

		if ($value !== false)
		{
			return $value;
		}
	}
1283542
public function get($key)
    {
        $token = $this->instance->get($key);
        if (!empty($token)) {
            return $token;
        }

        return null;
    }
307495
public function get($key)
    {
        $this->checkForKey($key);

        return $this->cache->get($this->path.$key);
    }
1116358
private function getLoaderMethod($key)
    {
        /*
         * Because this method is called so frequently, we cache the calculated
         * loader method names so we don't have to calculate them thousands of
         * times.
         */
        static $cache = array();

        if (!array_key_exists($key, $cache)) {
            $cache[$key] =
                'load' .
                str_replace(' ', '', ucwords(str_replace('_', ' ', $key)));
        }

        return $cache[$key];
    }
531759
protected function getContext($key)
    {
        if (GC_CLI) {
            return gplcart_array_get($this->context, $key);
        }

        return $this->session->get("install.context.$key");
    }
889070
public function get($key)
	{
		$value = xcache_get($this->prefix.$key);

		if (isset($value))
		{
			return $value;
		}
	}
218849
public function need($key)
    {
        if(!isset($this->resolved[$key])) {
            return $this->make($key);
        }

        return $this->resolved[$key];
    }
454925
public function get($key) {
        $file = $this->key2file($key);
        if (is_file($file)) {
            /** @noinspection PhpIncludeInspection */
            $r = require $file;
            if (!empty($r) && $key === $r['key'] && (0 === $r['expiration'] || time() <= $r['expiration'])) {
                X::logger()->trace("CCache hit $key");
                return $r['data'];
            }
        }
        X::logger()->trace("CCache miss $key");
        return false;
    }
244988
protected function getRaw($key)
	{
		if (isset($this->dataStore[$key]))
		{
			return $this->dataStore[$key];
		}

		$aliasKey = $this->resolveAlias($key);

		if ($aliasKey !== $key && isset($this->dataStore[$aliasKey]))
		{
			return $this->dataStore[$aliasKey];
		}

		if ($this->parent instanceof Container)
		{
			return $this->parent->getRaw($key);
		}

		if ($this->parent instanceof ContainerInterface && $this->parent->has($key))
		{
			$callback = $this->parent->get($key);

			if (!\is_callable($callback))
			{
				$callback = function () use ($callback)
				{
					return $callback;
				};
			}

			return array(
				'callback'  => $callback,
				'shared'    => true,
				'protected' => true,
			);
		}
	}
545614
public function get($key)
    {
        $filename = $this->cacheDir . DIRECTORY_SEPARATOR . $this->processKey($key);

        if (is_file($filename) && is_readable($filename)) {
            if (@filemtime($filename) < (time() - $this->ttl)) {
                return null;
            } else {
                return unserialize($this->safelyReadData($filename));
            }
        }

        return null;
    }
1299197
private function getUsingLoaderMethod($key)
    {
        $value = false;

        $loader_method = $this->getLoaderMethod($key);
        if (method_exists($this, $loader_method)) {
            if ($this->hasSubDataObject($key)) {
                // return loaded sub-dataobject
                $value = $this->getSubDataObject($key);
            } else {
                // use loader method to load sub-dataobject
                $this->checkDB();
                $this->setSubDataObject(
                    $key,
                    call_user_func(array($this, $loader_method))
                );

                $value = $this->getSubDataObject($key);
            }
        }

        return $value;
    }
41867
public static function get($key)
    {
        $path = Cache::path($key);

        if (file_exists($path)) {
            return file_get_contents($path);
        }

        return null;
    }
777751
private function getFileNameForKey($key)
    {
        return $this->getDir().strtr($this->format, ['%key%' => $key, '%env%' => $this->environment]);
    }
910822
public function getArgument($key)
    {
        $argument = $this->findArgument($key);
        if ($argument === null) {
            return null;
        }

        return $argument->getValue();
    }