setIgnoredAnnotationNamespaces() public method

Sets the annotation namespaces that are ignored during the parsing process.
public setIgnoredAnnotationNamespaces ( bool[] $ignoredAnnotationNamespaces ) : void
$ignoredAnnotationNamespaces bool[] indexed by annotation namespace name
return void
示例#1
0
 /**
  * {@inheritDoc}
  */
 public function getMethodAnnotations(ReflectionMethod $method)
 {
     $class = $method->getDeclaringClass();
     $context = 'method ' . $class->getName() . '::' . $method->getName() . '()';
     $this->parser->setTarget(Target::TARGET_METHOD);
     $this->parser->setImports($this->getMethodImports($method));
     $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
     $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
     return $this->parser->parse($method->getDocComment(), $context);
 }