Skip to content

Commit

Permalink
Allow to pass additional options to form factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnucki committed Sep 29, 2014
1 parent 93fbbad commit d954307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Form/Factory/FormFactory.php
Expand Up @@ -30,7 +30,7 @@ public function __construct(FormFactoryInterface $formFactory, $name, $type, arr

public function createForm(array $options = array())
{
$options = array_merge($options, array('validation_groups' => $this->validationGroups));
$options = array_merge(array('validation_groups' => $this->validationGroups), $options);

return $this->formFactory->createNamed($this->name, $this->type, null, $options);
}
Expand Down

0 comments on commit d954307

Please sign in to comment.