function SimpleAnnotationReader::__construct

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::__construct()
  2. 8.9.x core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::__construct()
  3. 10 core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::__construct()

Constructor.

Initializes a new SimpleAnnotationReader.

File

core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php, line 77

Class

SimpleAnnotationReader
Simple Annotation Reader.

Namespace

Drupal\Component\Annotation\Doctrine

Code

public function __construct() {
    $this->parser = new DocParser();
    $this->parser
        ->setIgnoreNotImportedAnnotations(true);
    $this->parser
        ->setIgnoredAnnotationNames($this->ignoredAnnotations);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.