/** * @param string $className * @param string $methodName * @param ParameterResolverFactoryInterface $parameterResolver * @param AnnotationReaderFactoryInterface $annotationReaderFactory */ function __construct($className, $methodName, ParameterResolverFactoryInterface $parameterResolver, AnnotationReaderFactoryInterface $annotationReaderFactory = null) { $this->method = new \ReflectionMethod($className, $methodName); $this->annotationReaderFactory = null === $annotationReaderFactory ? new SimpleAnnotationReaderFactory() : $annotationReaderFactory; $this->annotations = $this->annotationReaderFactory->getReader()->getMethodAnnotations($this->method); $this->parameterResolver = $parameterResolver; }
/** * Creates a new MethodMessageHandlerInspector instance. * * @param AnnotationReaderFactoryInterface $annotationReaderFactory * @param \ReflectionClass $targetClass Target class. * @param string $annotation Annotation to scan (FQDN) */ function __construct(AnnotationReaderFactoryInterface $annotationReaderFactory, \ReflectionClass $targetClass, $annotation) { $this->handlers = []; $this->targetClass = $targetClass; $this->annotation = $annotation; $this->annotationReader = $annotationReaderFactory->getReader(); $this->inspect(); }
/** * @param AnnotationReaderFactoryInterface $annotationReaderFactory */ public function __construct(AnnotationReaderFactoryInterface $annotationReaderFactory) { $this->reader = $annotationReaderFactory->getReader(); }
/** * @param AnnotationReaderFactoryInterface $annotationReaderFactory * @param int $unresolvedRoutingKeyPolicy */ public function __construct(AnnotationReaderFactoryInterface $annotationReaderFactory, $unresolvedRoutingKeyPolicy = UnresolvedRoutingKeyPolicy::ERROR) { parent::__construct($unresolvedRoutingKeyPolicy); $this->reader = $annotationReaderFactory->getReader(); }