doctrine/common — pull request #156 by ezimuel (2012-06-22 14:51:16+00:00)
Title: Added the support of wildcard in ignore annotation (addGlobalIgnoredName)

Using the addGlobalIgnoredName() of the AnnotationReader we can specify annotation tags that should not be considered by Doctrine. The ignored tags must be specified as strings. If we have tags specified by namespace we need to list all the possible sub-namespaces in addGlobalIgnoredName().

This PR add the support of wildcard in addGlobalIgnoredName(), for instance you can specify to ignore all the sub-namespaces of an annotation tag using the "\*" syntax:
use Doctrine\Common\Annotations\AnnotationReader;
$reader = new AnnotationReader();
AnnotationReader::addGlobalIgnoredName('Foo\\*');
This example will exclude all the Foo annotation tag and all the sub-namespaces.
Here you can find a complete example on how to use it: https://gist.github.com/2972974

I think this PR can be useful to continue to use the annotation of Doctrine with other PHP projects that use different annotation systems. Please note that the PR take care about the parsing performance of Doctrine, the wildcard syntax is activated only if there are annotations specified.