Skip to content

Commit

Permalink
Merge pull request #211 from manuelkoch/master
Browse files Browse the repository at this point in the history
FormBuilderInterface documentation update
  • Loading branch information
jmikola committed Jan 15, 2014
2 parents 9121dd3 + 92a0db7 commit 5b1d939
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Resources/doc/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ Next, create the form for the ``User`` model::

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class UserType extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('email', 'email');
$builder->add('password', 'repeated', array(
Expand Down Expand Up @@ -185,11 +185,11 @@ Next, create the form for this ``Registration`` model::

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormBuilderInterface;

class RegistrationType extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('user', new UserType());
$builder->add('terms', 'checkbox', array('property_path' => 'termsAccepted'));
Expand Down

0 comments on commit 5b1d939

Please sign in to comment.