/**
  * @param ReferenceResolverFactoryInterface $resolverFactory
  * @param ReaderInterface|null              $reader
  * @param UriFactoryInterface|null          $uriFactory
  */
 public function __construct(ReferenceResolverFactoryInterface $resolverFactory, ReaderInterface $reader = null, UriFactoryInterface $uriFactory = null)
 {
     parent::__construct($uriFactory);
     if (null === $reader) {
         $reader = new Reader();
     }
     $this->resolverFactory = $resolverFactory;
     $this->reader = $reader;
 }
Beispiel #2
0
 /**
  * @param BoundConstraintValidatorInterface $validator
  * @param ReaderInterface|null              $reader
  * @param UriFactoryInterface|null          $uriFactory
  */
 public function __construct(BoundConstraintValidatorInterface $validator, ReaderInterface $reader = null, UriFactoryInterface $uriFactory = null)
 {
     parent::__construct($uriFactory);
     if (null === $reader) {
         $reader = new FixedScopeResolvingReader();
     }
     $this->validator = $validator;
     $this->reader = $reader;
 }
Beispiel #3
0
 /**
  * @param LoaderInterface|null                     $loader
  * @param ProtocolMap|null                         $protocolMap
  * @param Value\Factory\ValueFactoryInterface|null $valueFactory
  * @param UriFactoryInterface|null                 $uriFactory
  */
 public function __construct(LoaderInterface $loader = null, ProtocolMap $protocolMap = null, Value\Factory\ValueFactoryInterface $valueFactory = null, UriFactoryInterface $uriFactory = null)
 {
     parent::__construct($uriFactory);
     if (null === $loader) {
         $loader = new Loader();
     }
     if (null === $protocolMap) {
         $protocolMap = new ProtocolMap();
     }
     if (null === $valueFactory) {
         $valueFactory = new Value\Factory\ValueFactory();
     }
     $this->loader = $loader;
     $this->protocolMap = $protocolMap;
     $this->valueFactory = $valueFactory;
 }