public function AnnotationReader::__construct

Constructor.

Initializes a new AnnotationReader.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/AnnotationReader.php, line 125

Class

AnnotationReader
A reader for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

public function __construct() {
  AnnotationRegistry::registerFile(__DIR__ . '/Annotation/IgnoreAnnotation.php');
  $this->parser = new DocParser();
  $this->preParser = new DocParser();
  $this->preParser
    ->setImports(self::$globalImports);
  $this->preParser
    ->setIgnoreNotImportedAnnotations(true);
  $this->phpParser = new PhpParser();
}