File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Filter options
src/Symfony/Component/Validator Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Original file line number Diff line number Diff line change 23
23
use Symfony \Component \Validator \Exception \InvalidArgumentException ;
24
24
use Symfony \Component \Validator \Exception \ValidatorException ;
25
25
use Symfony \Component \Validator \Mapping \Cache \CacheInterface ;
26
- use Symfony \Component \Validator \Mapping \ClassMetadataFactory ;
27
26
use Symfony \Component \Validator \Mapping \Factory \LazyLoadingMetadataFactory ;
28
27
use Symfony \Component \Validator \Mapping \Loader \AnnotationLoader ;
29
28
use Symfony \Component \Validator \Mapping \Loader \LoaderChain ;
@@ -379,11 +378,7 @@ public function getValidator()
379
378
$ loader = $ loaders [0 ];
380
379
}
381
380
382
- if (Validation::API_VERSION_2_5 === $ apiVersion ) {
383
- $ metadataFactory = new LazyLoadingMetadataFactory ($ loader , $ this ->metadataCache );
384
- } else {
385
- $ metadataFactory = new ClassMetadataFactory ($ loader , $ this ->metadataCache );
386
- }
381
+ $ metadataFactory = new LazyLoadingMetadataFactory ($ loader , $ this ->metadataCache );
387
382
}
388
383
389
384
$ validatorFactory = $ this ->validatorFactory ?: new ConstraintValidatorFactory ($ this ->propertyAccessor );
You can’t perform that action at this time.
0 commit comments