mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-01 12:56:15 +03:00
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.
This commit is contained in:
parent
df1c85ae5e
commit
8d3fd662bf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue