Commit 002a6a6e authored by Fabien Potencier's avatar Fabien Potencier

minor #1481 Change the ClassMetadataFactory (juliosbonifacio)

This PR was merged into the 2.1.x-dev branch.

Discussion
----------

Change the ClassMetadataFactory

Change the ClassMetadataFactory to LazyLoadingMetadataFactory because it is deprecated in last version.

Commits
-------

3f1f1f0d Change the ClassMetadataFactory
parents 02ba1df9 3f1f1f0d
...@@ -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