8000 minor #53536 [TwigBridge] Update the undefined callable list (smnandre) · bartrail/symfony@052c2c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 052c2c9

Browse files
committed
minor symfony#53536 [TwigBridge] Update the undefined callable list (smnandre)
This PR was squashed before being merged into the 7.1 branch. Discussion ---------- [TwigBridge] Update the undefined callable list | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT (minor/DX) Add missing filter/functions (defined in Symfony\Bridge\Twig\Extension) in the UndefinedCallableHandler Filter: * serialize ([SerializerExtension](https://github.com/symfony/symfony/blob/7.1/src/Symfony/Bridge/Twig/Extension/SerializerExtension.php)) Function: * impersonation_path ([SecurityExtension](https://github.com/symfony/symfony/blob/7.1/src/Symfony/Bridge/Twig/Extension/SecurityExtension.php)) * impersonation_url ([SecurityExtension](https://github.com/symfony/symfony/blob/7.1/src/Symfony/Bridge/Twig/Extension/SecurityExtension.php)) * impersonate_exit_path ([SecurityExtension](https://github.com/symfony/symfony/blob/7.1/src/Symfony/Bridge/Twig/Extension/SecurityExtension.php)) * impersonate_exit_url ([SecurityExtension](https://github.com/symfony/symfony/blob/7.1/src/Symfony/Bridge/Twig/Extension/SecurityExtension.php)) * t ([TranslationExtension](https://github.com/symfony/symfony/blob/7.1/src/Symfony/Bridge/Twig/Extension/TranslationExtension.php)) Commits ------- b78c803 [TwigBridge] Update the undefined callable list
2 parents 12f4697 + b78c803 commit 052c2c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Symfony/Bridge/Twig/UndefinedCallableHandler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class UndefinedCallableHandler
2525
private const FILTER_COMPONENTS = [
2626
'humanize' => 'form',
2727
'form_encode_currency' => 'form',
28+
'serialize' => 'serializer',
2829
'trans' => 'translation',
2930
'sanitize_html' => 'html-sanitizer',
3031
'yaml_encode' => 'yaml',
@@ -59,6 +60,11 @@ class UndefinedCallableHandler
5960
'logout_url' => 'security-http',
6061
'logout_path' => 'security-http',
6162
'is_granted' => 'security-core',
63+
'impersonation_path' => 'security-http',
64+
'impersonation_url' => 'security-http',
65+
'impersonation_exit_path' => 'security-http',
66+
'impersonation_exit_url' => 'security-http',
67+
't' => 'translation',
6268
'link' => 'web-link',
6369
'preload' => 'web-link',
6470
'dns_prefetch' => 'web-link',

0 commit comments

Comments
 (0)
0