__construct() public method

Initializes a new AnnotationReader.
public __construct ( DocParser $parser = null )
$parser DocParser
 public function __construct(Cache $cache = null, Parser $parser = null)
 {
     if (null === $parser) {
         $parser = new AnnotationParser();
     }
     parent::__construct($cache, $parser);
     $this->setAutoloadAnnotations(false);
     $this->setAnnotationNamespaceAlias('JMS\\SecurityExtraBundle\\Annotation\\', 'extra');
     $this->loadAnnotations();
 }
 /**
  * Creates a basic instance of the AnnotationReader and sets some namespaces for autoloading
  * @throws \Doctrine\Common\Annotations\AnnotationException
  */
 public function __construct()
 {
     parent::__construct();
     AnnotationRegistry::registerAutoloadNamespace('PhpJsonMarshaller', [__DIR__ . '/../../']);
     AnnotationRegistry::registerAutoloadNamespace('\\PhpJsonMarshaller', [__DIR__ . '/../../']);
 }