vendor/symfony/ux-lazy-image/src/Twig/BlurHashExtension.php line 17

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  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 Symfony\UX\LazyImage\Twig;
  11. use Twig\Extension\AbstractExtension;
  12. use Twig\TwigFunction;
  13. trigger_deprecation('symfony/ux-lazy-image''2.27.0''The package is deprecated and will be removed in 3.0.');
  14. /**
  15.  * @author Titouan Galopin <galopintitouan@gmail.com>
  16.  *
  17.  * @final
  18.  */
  19. class BlurHashExtension extends AbstractExtension
  20. {
  21.     public function getFunctions(): array
  22.     {
  23.         return [
  24.             new TwigFunction('data_uri_thumbnail', [BlurHashRuntime::class, 'createDataUriThumbnail']),
  25.             new TwigFunction('blur_hash', [BlurHashRuntime::class, 'blurHash']),
  26.         ];
  27.     }
  28. }