Browse files

Merge pull request #7 from umpirsky/symfony-upgrade-fixes

Made compatible with latest Symfony master.
  • Loading branch information...
2 parents 59961ec + 861b3b4 commit 31b22fd8410c10cbaef88b1af49e92c7cb8652ed @pjedrzejewski pjedrzejewski committed May 28, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 Form/Type/PostType.php
  2. +2 −2 Form/Type/SignedPostType.php
View
4 Form/Type/PostType.php
@@ -12,7 +12,7 @@
namespace Sylius\Bundle\BloggerBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
-use Symfony\Component\Form\FormBuilder;
+use Symfony\Component\Form\FormBuilderInterface;
/**
* Post form type.
@@ -41,7 +41,7 @@ public function __construct($dataClass)
/**
* {@inheritdoc}
*/
- public function buildForm(FormBuilder $builder, array $options)
+ public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('title', 'text')
View
4 Form/Type/SignedPostType.php
@@ -11,7 +11,7 @@
namespace Sylius\Bundle\BloggerBundle\Form\Type;
-use Symfony\Component\Form\FormBuilder;
+use Symfony\Component\Form\FormBuilderInterface;
/**
* Signed post form type.
@@ -23,7 +23,7 @@ class SignedPostType extends PostType
/**
* {@inheritdoc}
*/
- public function buildForm(FormBuilder $builder, array $options)
+ public function buildForm(FormBuilderInterface $builder, array $options)
{
parent::buildForm($builder, $options);

0 comments on commit 31b22fd

Please sign in to comment.