You are here

public function CachedReader::__construct in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php \Doctrine\Common\Annotations\CachedReader::__construct()

Constructor.

Parameters

Reader $reader:

Cache $cache:

bool $debug:

File

modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php, line 64

Class

CachedReader
A cache aware annotation reader.

Namespace

Doctrine\Common\Annotations

Code

public function __construct(Reader $reader, Cache $cache, $debug = false) {
  $this->delegate = $reader;
  $this->cache = $cache;
  $this->debug = (bool) $debug;
}