FakeBlockService.php 792 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\AdminBundle\Tests\Block;
  11. use Sonata\AdminBundle\Block\AdminListBlockService;
  12. use Symfony\Component\OptionsResolver\OptionsResolver;
  13. /**
  14. * @author Sullivan Senechal <soullivaneuh@gmail.com>
  15. */
  16. class FakeBlockService extends AdminListBlockService
  17. {
  18. public function configureSettings(OptionsResolver $resolver)
  19. {
  20. parent::configureSettings($resolver);
  21. $resolver
  22. ->setDefaults(array(
  23. 'foo' => 'bar',
  24. 'groups' => true,
  25. ))
  26. ;
  27. }
  28. }