Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
remove deprecated
  • Loading branch information
garak committed Jun 22, 2015
1 parent 92e4acc commit f49653a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -1,3 +1,4 @@
.gitattributes export-ignore
.gitignore export-ignore
composer.json export-ignore
CONTRIBUTING.md export-ignore
Expand Down
4 changes: 2 additions & 2 deletions Resources/skeleton/filter/FormFilterType.php.twig
Expand Up @@ -4,7 +4,7 @@ namespace {{ namespace }}\Form\Type{{ entity_namespace ? '\\' ~ entity_namespace
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class {{ form_class }} extends AbstractType
{
Expand Down Expand Up @@ -39,7 +39,7 @@ class {{ form_class }} extends AbstractType
/**
* {@inheritdoc}
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => '{{ bundle_namespace }}\Entity{{ entity_namespace ? '\\' ~ entity_namespace : '' }}\{{ entity_class }}',
Expand Down
4 changes: 2 additions & 2 deletions Resources/skeleton/form/FormType.php.twig
Expand Up @@ -4,7 +4,7 @@ namespace {{ namespace }}\Form\Type{{ entity_namespace ? '\\' ~ entity_namespace
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class {{ form_class }} extends AbstractType
{
Expand All @@ -29,7 +29,7 @@ class {{ form_class }} extends AbstractType
/**
* {@inheritdoc}
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => '{{ bundle_namespace }}\Entity{{ entity_namespace ? '\\' ~ entity_namespace : '' }}\{{ entity_class }}',
Expand Down

0 comments on commit f49653a

Please sign in to comment.