From 8d3fd662bfd0bd439e6f74056adf46876feeaeb8 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 18 Jun 2014 09:38:16 +0200 Subject: [PATCH] Fixed the retrieval of the validation MetadataFactory The service is private so getting it from the container get() method is invalid and it does not work anymore in Symfony 2.5 because the service gets inlined. --- Tests/Parser/ValidationParserTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Parser/ValidationParserTest.php b/Tests/Parser/ValidationParserTest.php index 7aed2d9..13885b7 100644 --- a/Tests/Parser/ValidationParserTest.php +++ b/Tests/Parser/ValidationParserTest.php @@ -13,7 +13,7 @@ class ValidationParserTest extends WebTestCase public function setUp() { $container = $this->getContainer(); - $factory = $container->get('validator.mapping.class_metadata_factory'); + $factory = $container->get('validator')->getMetadataFactory(); if (version_compare(Kernel::VERSION, '2.2.0', '<')) { $this->parser = new ValidationParserLegacy($factory);