Skip to content

[TwigBundle] Don't register emoji extension on missing intl extension #54534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

alexandre-daubois
Copy link
Member

Q A
Branch? 7.1
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

Appveyor is failing a log because Twig bundle tries to load Emoji transliterator even if ext-intl is not present. Snippet of the error:

8) Symfony\Bundle\SecurityBundle\Tests\Functional\CsrfFormLoginTest::testFormLoginRedirectsToProtectedResourceAfterLogin with data set #0 (array('CsrfFormLogin', 'config.yml'))
LogicException: You cannot use the "Symfony\Component\Emoji\EmojiTransliterator" class as the "intl" extension is not installed. See https://php.net/intl.

C:\projects\symfony\src\Symfony\Component\Emoji\EmojiTransliterator.php:17
C:\projects\symfony\src\Symfony\Component\ErrorHandler\DebugClassLoader.php:304
C:\projects\symfony\src\Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\ExtensionPass.php:35
C:\projects\symfony\src\Symfony\Component\DependencyInjection\Compiler\Compiler.php:73
C:\projects\symfony\src\Symfony\Component\DependencyInjection\ContainerBuilder.php:750
C:\projects\symfony\src\Symfony\Component\HttpKernel\Kernel.php:495
C:\projects\symfony\src\Symfony\Component\HttpKernel\Kernel.php:732
C:\projects\symfony\src\Symfony\Component\HttpKernel\Kernel.php:120
C:\projects\symfony\src\Symfony\Bundle\FrameworkBundle\Test\KernelTestCase.php:67
C:\projects\symfony\src\Symfony\Bundle\FrameworkBundle\Test\WebTestCase.php:44
C:\projects\symfony\src\Symfony\Bundle\SecurityBundle\Tests\Functional\CsrfFormLoginTest.php:111

@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@nicolas-grekas nicolas-grekas merged commit a8b4739 into symfony:7.1 Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants