Commit 3f1f1f0d authored by JULIO BONIFACIO ALIAGA's avatar JULIO BONIFACIO ALIAGA Committed by GitHub

Change the ClassMetadataFactory

Change the ClassMetadataFactory to LazyLoadingMetadataFactory because it is deprecated in last version.
parent 02ba1df9
...@@ -16,7 +16,7 @@ Next, you need to tell the Validation Service that you are not using ...@@ -16,7 +16,7 @@ Next, you need to tell the Validation Service that you are not using
$app->register(new ValidatorServiceProvider()); $app->register(new ValidatorServiceProvider());
$app['validator.mapping.class_metadata_factory'] = new Symfony\Component\Validator\Mapping\ClassMetadataFactory( $app['validator.mapping.class_metadata_factory'] = new Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory(
new Symfony\Component\Validator\Mapping\Loader\YamlFileLoader(__DIR__.'/validation.yml') new Symfony\Component\Validator\Mapping\Loader\YamlFileLoader(__DIR__.'/validation.yml')
); );
......
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