src/Registry/AbstractRegistry.php
protected function loadContent(string $hash): ?string
    {
        if (!array_key_exists($hash, $this->cache)) {
            $content = $this->adapter->load($this->namespace, $hash);
            $this->cache[$hash] = is_string($content) ? $content : null;
        }
        return $this->cache[$hash];
    }
protected function loadContent(string $hash): ?string
    {
        if (!array_key_exists($hash, $this->cache)) {
            $content = $this->adapter->load($this->namespace, $hash);
            $this->cache[$hash] = is_string($content) ? $content : null;
        }
        return $this->cache[$hash];
    }
protected function loadContent ( string $ hash ) : ? string { if ( ! array_key_exists ( $ hash , $ this -> cache ) ) { $ content = $ this -> adapter -> load ( $ this -> namespace , $ hash ) ; $ this -> cache [ $ hash ] = is_string ( $ content ) ? $ content : null ; } return $ this -> cache [ $ hash ] ; }
Loads the content with the specified hash from the registry.
@param string $hash
@return string|null
Loads the content with the specified hash from the registry .