Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PsrCachedReader.php

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\Annotations

Code

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();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal