fix BC layer of Form DependencyInjection extension

This commit is contained in:
Christian Flothmann 2017-03-04 00:11:48 +01:00
parent 1a957100c2
commit ab487e48ca
2 changed files with 3 additions and 2 deletions

View File

@ -41,6 +41,7 @@ class DependencyInjectionExtension implements FormExtensionInterface
@trigger_error(sprintf('Passing four arguments to the %s::__construct() method is deprecated since Symfony 3.3 and will be disallowed in Symfony 4.0. The new constructor only accepts three arguments.', __CLASS__), E_USER_DEPRECATED);
$this->guesserServiceIds = $guesserServiceIds;
$this->typeServiceIds = $typeExtensionServices;
$typeExtensionServices = $guesserServices;
}
$this->typeContainer = $typeContainer;

View File

@ -81,7 +81,7 @@ class DependencyInjectionExtensionTest extends TestCase
throw new ServiceNotFoundException($id);
});
$extension = new DependencyInjectionExtension($container, array('test' => array('extension1', 'extension2'), 'other' => array('extension3')), array(), array());
$extension = new DependencyInjectionExtension($container, array(), array('test' => array('extension1', 'extension2'), 'other' => array('extension3')), array());
$this->assertTrue($extension->hasTypeExtensions('test'));
$this->assertFalse($extension->hasTypeExtensions('unknown'));
@ -102,7 +102,7 @@ class DependencyInjectionExtensionTest extends TestCase
->with('extension')
->willReturn($this->createFormTypeExtensionMock('unmatched'));
$extension = new DependencyInjectionExtension($container, array('test' => array('extension')), array(), array());
$extension = new DependencyInjectionExtension($container, array(), array('test' => array('extension')), array());
$extension->getTypeExtensions('test');
}