Commit aaec9f86 authored by Fabien Potencier's avatar Fabien Potencier

removed obsolete code

parent 485cad9f
......@@ -54,11 +54,7 @@ class ValidatorServiceProvider implements ServiceProviderInterface
});
$app['validator.mapping.class_metadata_factory'] = $app->share(function ($app) {
if (class_exists('Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory')) {
return new LazyLoadingMetadataFactory(new StaticMethodLoader());
}
return new ClassMetadataFactory(new StaticMethodLoader());
return new LazyLoadingMetadataFactory(new StaticMethodLoader());
});
$app['validator.validator_factory'] = $app->share(function () use ($app) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment