function PsrCachedReader::fetchFromCache
Return value
mixed[]
3 calls to PsrCachedReader::fetchFromCache()
- PsrCachedReader::getClassAnnotations in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ PsrCachedReader.php - Gets the annotations applied to a class.
- PsrCachedReader::getMethodAnnotations in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ PsrCachedReader.php - Gets the annotations applied to a method.
- PsrCachedReader::getPropertyAnnotations in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ PsrCachedReader.php - Gets the annotations applied to a property.
File
-
vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ PsrCachedReader.php, line 146
Class
- PsrCachedReader
- A cache aware annotation reader.
Namespace
Doctrine\Common\AnnotationsCode
private function fetchFromCache(string $cacheKey, ReflectionClass $class, string $method, Reflector $reflector) : array {
$cacheKey = rawurlencode($cacheKey);
$item = $this->cache
->getItem($cacheKey);
if ($this->debug && !$this->refresh($cacheKey, $class) || !$item->isHit()) {
$this->cache
->save($item->set($this->delegate
->{$method}($reflector)));
}
return $item->get();
}