-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
Description
Symfony version(s) affected
6.0
Description
I'm using Symfony\Bridge\Twig\Mime\BodyRenderer without League\HTMLToMarkdown\HtmlConverter.
The code in the constructor allows me to do that.
But in production, with preloading, I'm facing an issue:
Failed to load class League\HTMLToMarkdown\HtmlConverter used by typed property Symfony\Bridge\Twig\Mime\BodyRenderer::$converter during preloading
I believe that typehinted property HAVE to be loadable when preloaded
edit: same for Predis\ClientInterface in Symfony\Component\Cache\Traits\RedisClusterProxy
How to reproduce
- enable preloading
composer require symfony/twig-bridge:^6.0- assert
League\HTMLToMarkdownis NOT installed
Possible Solution
- remove type hinted property for optional dependencies
Additional Context
No response