[Form][OptionsResolver] Fixed typos

This commit is contained in:
Bernhard Schussek 2012-05-24 08:54:17 +02:00
parent 877d8f7195
commit 8e128fc644
3 changed files with 5 additions and 3 deletions

View File

@ -643,7 +643,7 @@
```
public function buildForm(FormBuilderInterface $builder, array $options)
public function buildView(FormViewInterface $view, FormInterface $form, array $options)
public function buildViewBottomUp(FormViewInterface $view, FormInterface $form, array $options)
public function finishView(FormViewInterface $view, FormInterface $form, array $options)
```
* The following methods in `FormBuilder` were deprecated and have a new equivalent:

View File

@ -62,7 +62,9 @@ class FormTypeValidatorExtension extends AbstractTypeExtension
$validationGroupsFilter = function (Options $options, $groups) {
if (empty($groups)) {
return null;
} elseif (is_callable($groups)) {
}
if (is_callable($groups)) {
return $groups;
}

View File

@ -85,7 +85,7 @@ method:
));
$resolver->setDefaults(array(
// $previousValue contains the default value setDefaultOptionsd in the
// $previousValue contains the default value configured in the
// parent class
'age' => function (Options $options, $previousValue) {
return self::calculateAge($options['birthDate']);