Skip to content

Commit

Permalink
Merge pull request #28 from msvrtan/symfony3-compatibility
Browse files Browse the repository at this point in the history
Symfony3 compatibility
  • Loading branch information
rdohms committed Jul 8, 2016
2 parents 1ee673a + 90559ad commit 2b846ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/DMS/Bundle/FilterBundle/Form/Type/FormTypeFilterExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Symfony\Component\Form\FormBuilderInterface;
use DMS\Bundle\FilterBundle\Service\Filter;
use DMS\Bundle\FilterBundle\Form\EventListener\DelegatingFilterListener;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

/**
Expand Down Expand Up @@ -59,6 +60,16 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
));
}

/**
* @param OptionsResolver $resolver
*/
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'cascade_filter' => true
));
}

/**
* {@inheritdoc}
*/
Expand Down
2 changes: 1 addition & 1 deletion src/DMS/Bundle/FilterBundle/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
filter: '@dms.filter'
auto_filter: '%dms_filter.auto_filter_forms%'
tags:
- { name: form.type_extension, alias: Symfony\Component\Form\Extension\Core\Type\FormType }
- { name: form.type_extension, alias: Symfony\Component\Form\Extension\Core\Type\FormType, extended_type: Symfony\Component\Form\Extension\Core\Type\FormType }

dms.filter.container_loader:
class: DMS\Bundle\FilterBundle\Loader\ContainerAwareLoader
Expand Down

0 comments on commit 2b846ad

Please sign in to comment.