fix BC layer of Form DependencyInjection extension
This commit is contained in:
parent
1a957100c2
commit
ab487e48ca
@ -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;
|
||||
|
@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user