src/Registry/Adapter/FileSystemAdapter.php
public function load(string $namespace, string $hash): ?string
    {
        $result = null;
        $fileName = $this->getFileName($namespace, $hash);
        if (file_exists($fileName) && is_readable($fileName)) {
            $result = file_get_contents($fileName);
        }
        return is_string($result) ? $result : null;
    }
public function load(string $namespace, string $hash): ?string
    {
        $result = null;
        $fileName = $this->getFileName($namespace, $hash);
        if (file_exists($fileName) && is_readable($fileName)) {
            $result = file_get_contents($fileName);
        }
        return is_string($result) ? $result : null;
    }
public function load ( string $ namespace , string $ hash ) : ? string { $ result = null ; $ fileName = $ this -> getFileName ( $ namespace , $ hash ) ; if ( file_exists ( $ fileName ) && is_readable ( $ fileName ) ) { $ result = file_get_contents ( $ fileName ) ; } return is_string ( $ result ) ? $ result : null ; }
Loads and returns the content of the specified hash, if available.
@param string $namespace
@param string $hash
@return string|null
Loads and returns the content of the specified hash if available .