Neos\Cache\Frontend\PhpFrontend::getWrapped PHP Метод

getWrapped() публичный Метод

Returns the code wrapped in php tags as written to the cache, ready to be included.
public getWrapped ( string $entryIdentifier ) : string
$entryIdentifier string
Результат string
    public function getWrapped($entryIdentifier)
    {
        if (!$this->isValidEntryIdentifier($entryIdentifier)) {
            throw new \InvalidArgumentException('"' . $entryIdentifier . '" is not a valid cache entry identifier.', 1233057752);
        }
        return $this->backend->get($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);
 }