Skip to content

Commit

Permalink
[#5456] Updating for Symfony 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Jul 8, 2015
1 parent c8b3722 commit c8f4844
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cookbook/form/data_transformers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Suppose you have a Task form with a description ``textarea`` type::
// src/AppBundle/Form/TaskType.php

use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

// ...
class TaskType extends AbstractType
Expand All @@ -35,7 +35,7 @@ Suppose you have a Task form with a description ``textarea`` type::
->add('description', 'textarea');
}
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'AppBundle\Entity\Task'
Expand Down Expand Up @@ -131,7 +131,7 @@ Start by setting up the text field like normal::
->add('issue', 'text');
}

public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'AppBundle\Entity\Task'
Expand Down

0 comments on commit c8f4844

Please sign in to comment.