Skip to content

Commit

Permalink
removed some Form deprecation notices
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 8, 2015
1 parent 0edcc2e commit 4253824
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Expand Up @@ -260,7 +260,7 @@ public function createForm($type, $data = null, array $options = array())
*/
public function createFormBuilder($data = null, array $options = array())
{
return $this->container->get('form.factory')->createBuilder('form', $data, $options);
return $this->container->get('form.factory')->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType', $data, $options);
}

/**
Expand Down
Expand Up @@ -49,6 +49,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
*/
public function getExtendedType()
{
return 'form';
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
}
}
Expand Up @@ -55,6 +55,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
*/
public function getExtendedType()
{
return 'form';
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
}
}
Expand Up @@ -36,7 +36,7 @@ protected function setUp()

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

$this->assertInternalType('array', $typeExtensions);
$this->assertCount(1, $typeExtensions);
Expand Down
Expand Up @@ -33,7 +33,7 @@ protected function setUp()

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

public function testBuildForm()
Expand Down

0 comments on commit 4253824

Please sign in to comment.