vendor/liip/imagine-bundle/Templating/FilterExtension.php line 14

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the `liip/LiipImagineBundle` project.
  4. *
  5. * (c) https://github.com/liip/LiipImagineBundle/graphs/contributors
  6. *
  7. * For the full copyright and license information, please view the LICENSE.md
  8. * file that was distributed with this source code.
  9. */
  10. namespace Liip\ImagineBundle\Templating;
  11. @trigger_error('The '.FilterExtension::class.' class is deprecated since version 2.7 and will be removed in 3.0; configure "liip_imagine.twig.mode" to "lazy" instead.', E_USER_DEPRECATED);
  12. use Twig\Extension\AbstractExtension;
  13. use Twig\TwigFilter;
  14. /**
  15. * @deprecated
  16. */
  17. class FilterExtension extends AbstractExtension
  18. {
  19. use FilterTrait;
  20. public function getFilters()
  21. {
  22. return [
  23. new TwigFilter('imagine_filter', [$this, 'filter']),
  24. new TwigFilter('imagine_filter_cache', [$this, 'filterCache']),
  25. ];
  26. }
  27. }