8000 minor #15711 removed some Form related deprecation notices (fabpot) · symfony/symfony@a8c3b23 · GitHub
[go: up one dir, main page]

Skip to content

Commit a8c3b23

Browse files
committed
minor #15711 removed some Form related deprecation notices (fabpot)
This PR was merged into the 2.8 branch. Discussion ---------- removed some Form related deprecation notices | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a This removes a deprecation notice. Commits ------- 4253824 removed some Form deprecation notices
2 parents cf04e48 + 4253824 commit a8c3b23

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public function createForm($type, $data = null, array $options = array())
260260
*/
261261
public function createFormBuilder($data = null, array $options = array())
262262
{
263-
return $this->container->get('form.factory')->createBuilder('form', $data, $options);
263+
return $this->container->get('form.factory')->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType', $data, $options);
264264
}
265265

266266
/**

src/Symfony/Component/Form/Extension/DataCollector/Type/DataCollectorTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
4949
*/
5050
public function getExtendedType()
5151
{
52-
return 'form';
52+
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
5353
}
5454
}

src/Symfony/Component/Form/Extension/HttpFoundation/Type/FormTypeHttpFoundationExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
5555
*/
5656
public function getExtendedType()
5757
{
58-
return 'form';
58+
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
5959
}
6060
}

src/Symfony/Component/Form/Tests/Extension/DataCollector/DataCollectorExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function setUp()
3636

3737
public 8000 function testLoadTypeExtensions()
3838
{
39-
$typeExtensions = $this->extension->getTypeExtensions('form');
39+
$typeExtensions = $this->extension->getTypeExtensions('Symfony\Component\Form\Extension\Core\Type\FormType');
4040

4141
$this->assertInternalType('array', $typeExtensions);
4242
$this->assertCount(1, $typeExtensions);

src/Symfony/Component/Form/Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function setUp()
3333

3434
public function testGetExtendedType()
3535
{
36-
$this->assertEquals('form', $this->extension->getExtendedType());
36+
$this->assertEquals('Symfony\Component\Form\Extension\Core\Type\FormType', $this->extension->getExtendedType());
3737
}
3838

3939
public function testBuildForm()

0 commit comments

Comments
 (0)
0