Merge pull request #51 from lsmith77/patch-1

form master BC break
This commit is contained in:
William Durand 2012-07-22 08:44:05 -07:00
commit a18bbb0013

View File

@ -14,7 +14,7 @@ namespace Nelmio\ApiDocBundle\Form\Extension;
use Symfony\Component\Form\AbstractTypeExtension; use Symfony\Component\Form\AbstractTypeExtension;
use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormViewInterface; use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolverInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class DescriptionFormTypeExtension extends AbstractTypeExtension class DescriptionFormTypeExtension extends AbstractTypeExtension
@ -30,7 +30,7 @@ class DescriptionFormTypeExtension extends AbstractTypeExtension
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function buildView(FormViewInterface $view, FormInterface $form, array $options) public function buildView(FormView $view, FormInterface $form, array $options)
{ {
$view->setVar('description', $options['description']); $view->setVar('description', $options['description']);
} }