Browse files

Merge pull request #40 from benja-M-1/master

Update SnippetType with the new symfony form
  • Loading branch information...
2 parents 18726aa + dab520a commit 11f7f18a8ea08adc1d0afee34e3b70924e82a5a9 @marekkalnik marekkalnik committed May 27, 2012
Showing with 8 additions and 8 deletions.
  1. +2 −2 Form/LayoutType.php
  2. +2 −2 Form/MediaType.php
  3. +2 −2 Form/PageType.php
  4. +2 −2 Form/SnippetType.php
View
4 Form/LayoutType.php
@@ -3,14 +3,14 @@
namespace Theodo\RogerCmsBundle\Form;
use Symfony\Component\Form\AbstractType;
-use Symfony\Component\Form\FormBuilder;
+use Symfony\Component\Form\FormBuilderInterface;
use Theodo\RogerCmsBundle\Entity\Layout;
class LayoutType extends AbstractType
{
- public function buildForm(FormBuilder $builder, array $options)
+ public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('id', 'hidden');
$builder->add('name', 'text', array('required' => true));
View
4 Form/MediaType.php
@@ -3,14 +3,14 @@
namespace Theodo\RogerCmsBundle\Form;
use Symfony\Component\Form\AbstractType;
-use Symfony\Component\Form\FormBuilder;
+use Symfony\Component\Form\FormBuilderInterface;
use Theodo\RogerCmsBundle\Entity\Media;
class MediaType extends AbstractType
{
- public function buildForm(FormBuilder $builder, array $options)
+ public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('id', 'hidden');
$builder->add('name', 'text', array('required' => true));
View
4 Form/PageType.php
@@ -3,7 +3,7 @@
namespace Theodo\RogerCmsBundle\Form;
use Symfony\Component\Form\AbstractType;
-use Symfony\Component\Form\FormBuilder;
+use Symfony\Component\Form\FormBuilderInterface;
use Theodo\RogerCmsBundle\Entity\Page;
use Theodo\RogerCmsBundle\Repository\PageRepository;
@@ -16,7 +16,7 @@ class PageType extends AbstractType
* @author Vincent Guillon <vincentg@theodo.fr>
* @since 2011-06-21
*/
- public function buildForm(FormBuilder $builder, array $options)
+ public function buildForm(FormBuilderInterface $builder, array $options)
{
// Set inputs
$builder->add('parent_id', 'hidden', array('required' => true));
View
4 Form/SnippetType.php
@@ -3,14 +3,14 @@
namespace Theodo\RogerCmsBundle\Form;
use Symfony\Component\Form\AbstractType;
-use Symfony\Component\Form\FormBuilder;
+use Symfony\Component\Form\FormBuilderInterface;
use Theodo\RogerCmsBundle\Entity\Snippet;
class SnippetType extends AbstractType
{
- public function buildForm(FormBuilder $builder, array $options)
+ public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('id', 'hidden');
$builder->add('name', 'text', array('required' => true));

0 comments on commit 11f7f18

Please sign in to comment.