public function requireOnce(string $entryIdentifier)
    {
        $pathAndFilename = $this->cacheDirectory . $entryIdentifier . $this->cacheEntryFileExtension;
        if ($entryIdentifier !== basename($entryIdentifier)) {
            throw new \InvalidArgumentException('The specified entry identifier (' . $entryIdentifier . ') must not contain a path segment.', 1282073036);
        }

        if (is_file($pathAndFilename)) {
            return include_once($pathAndFilename);
        }
        return false;
    }
public function requireOnce(string $entryIdentifier)
    {
        $pathAndFilename = $this->cacheDirectory . $entryIdentifier . $this->cacheEntryFileExtension;
        if ($entryIdentifier !== basename($entryIdentifier)) {
            throw new \InvalidArgumentException('The specified entry identifier (' . $entryIdentifier . ') must not contain a path segment.', 1282073036);
        }

        if (is_file($pathAndFilename)) {
            return include_once($pathAndFilename);
        }
        return false;
    }
public function requireOnce ( string $ entryIdentifier ) { $ pathAndFilename = $ this -> cacheDirectory . $ entryIdentifier . $ this -> cacheEntryFileExtension ; if ( $ entryIdentifier !== basename ( $ entryIdentifier ) ) { throw new \ InvalidArgumentException ( 'The specified entry identifier (' . $ entryIdentifier . ') must not contain a path segment.' , 1282073036 ) ; } if ( is_file ( $ pathAndFilename ) ) { return include_once ( $ pathAndFilename ) ; } return false ; }
Loads PHP code from the cache and include_onces it right away.

@param string $entryIdentifier An identifier which describes the cache entry to load
@return mixed Potential return value from the include operation
@throws \InvalidArgumentException
@api
Loads PHP code from the cache and include_onces it right away .