Skip to content

Commit

Permalink
Merge pull request #15 from admin-platform/bugfix/fix-twig-filter
Browse files Browse the repository at this point in the history
Fix sylius twig filter.
  • Loading branch information
andriusvo authored Apr 12, 2022
2 parents 07b02c2 + 7676603 commit 1f65827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Twig/Extension/CurrencyExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

use Symfony\Component\Intl\Currencies;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
use Twig\TwigFilter;

class CurrencyExtension extends AbstractExtension
{
/** {@inheritdoc} */
public function getFilters(): array
{
return [
new TwigFunction('sylius_currency_symbol', [$this, 'convertCurrencyCodeToSymbol']),
new TwigFilter('sylius_currency_symbol', [$this, 'convertCurrencyCodeToSymbol']),
];
}

Expand Down

0 comments on commit 1f65827

Please sign in to comment.