Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony 3 compatible #436

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions Form/JQuery/Type/SliderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

/**
* SliderType
Expand All @@ -31,7 +31,10 @@ public function buildView(FormView $view, FormInterface $form, array $options)
$view->vars['configs'] = $options;
}

public function setDefaultOptions(OptionsResolverInterface $resolver)
/**
* @param OptionsResolver $resolver
*/
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'min' => 0,
Expand All @@ -40,11 +43,9 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
'orientation' => 'horizontal'
));

$resolver->setAllowedValues(array(
'orientation' => array(
'horizontal',
'vertical'
)
$resolver->setAllowedValues('orientation', array(
'horizontal',
'vertical'
));
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "genemu/form-bundle",
"name": "lendable/form-bundle",
"type": "symfony-bundle",
"description": "Extra form types for your Symfony2 projects",
"keywords": ["form", "extra form"],
Expand Down