Skip to content

Commit ae07c30

Browse files
committed
fix BC layer of Form DependencyInjection extension
1 parent ea1a57a commit ae07c30

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Extension/DependencyInjection/DependencyInjectionExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public function __construct(ContainerInterface $typeContainer, array $typeExtens
4141
@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);
4242
$this->guesserServiceIds = $guesserServiceIds;
4343
$this->typeServiceIds = $typeExtensionServices;
44+
$typeExtensionServices = $guesserServices;
4445
}
4546

4647
$this->typeContainer = $typeContainer;

Tests/Extension/DependencyInjection/DependencyInjectionExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function testLegacyGetTypeExtensions()
8181
throw new ServiceNotFoundException($id);
8282
});
8383

84-
$extension = new DependencyInjectionExtension($container, array('test' => array('extension1', 'extension2'), 'other' => array('extension3')), array(), array());
84+
$extension = new DependencyInjectionExtension($container, array(), array('test' => array('extension1', 'extension2'), 'other' => array('extension3')), array());
8585

8686
$this->assertTrue($extension->hasTypeExtensions('test'));
8787
$this->assertFalse($extension->hasTypeExtensions('unknown'));
@@ -102,7 +102,7 @@ public function testLegacyThrowExceptionForInvalidExtendedType()
102102
->with('extension')
103103
->willReturn($this->createFormTypeExtensionMock('unmatched'));
104104

105-
$extension = new DependencyInjectionExtension($container, array('test' => array('extension')), array(), array());
105+
$extension = new DependencyInjectionExtension($container, array(), array('test' => array('extension')), array());
106106

107107
$extension->getTypeExtensions('test');
108108
}

0 commit comments

Comments
 (0)