mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +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
@ -13,7 +13,7 @@ class ValidationParserTest extends WebTestCase
|
|||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
$container = $this->getContainer();
|
$container = $this->getContainer();
|
||||||
$factory = $container->get('validator.mapping.class_metadata_factory');
|
$factory = $container->get('validator')->getMetadataFactory();
|
||||||
|
|
||||||
if (version_compare(Kernel::VERSION, '2.2.0', '<')) {
|
if (version_compare(Kernel::VERSION, '2.2.0', '<')) {
|
||||||
$this->parser = new ValidationParserLegacy($factory);
|
$this->parser = new ValidationParserLegacy($factory);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user