Skip to content

Commit

Permalink
Accept any supported annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Zukowski committed Jul 29, 2015
1 parent 18a7075 commit 3108949
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Service/AnnotationExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

use Doctrine\Common\Annotations\AnnotationReader as Reader;
use mxdiModule\Annotation\AnnotationInterface;
use mxdiModule\Annotation\InjectParams;

class AnnotationExtractor implements ExtractorInterface
{
Expand All @@ -26,7 +25,7 @@ public function getConstructorInjections($fqcn)

return $this->reader->getMethodAnnotation(
new \ReflectionMethod($fqcn, '__construct'),
InjectParams::class
AnnotationInterface::class
);
}

Expand Down

0 comments on commit 3108949

Please sign in to comment.