Neos\Cache\Frontend\PhpFrontend::requireOnce PHP Method

requireOnce() public method

Loads PHP code from the cache and require_onces it right away.
public requireOnce ( string $entryIdentifier ) : mixed
$entryIdentifier string An identifier which describes the cache entry to load
return mixed Potential return value from the include operation
    public function requireOnce($entryIdentifier)
    {
        return $this->backend->requireOnce($entryIdentifier);
    }

Usage Example

 /**
  * Gets an entry from the cache or NULL if the
  * entry does not exist.
  *
  * @param string $name
  * @return string
  */
 public function get($name)
 {
     if ($this->flowCache->has($name)) {
         $this->flowCache->requireOnce($name);
     }
     return $this->flowCache->getWrapped($name);
 }
All Usage Examples Of Neos\Cache\Frontend\PhpFrontend::requireOnce