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\HTMLToMarkdown is NOT installed
Possible Solution
- remove type hinted property for optional dependencies
Additional Context
No response
Symfony version(s) affected
6.0
Description
I'm using
Symfony\Bridge\Twig\Mime\BodyRendererwithoutLeague\HTMLToMarkdown\HtmlConverter.The code in the constructor allows me to do that.
But in production, with preloading, I'm facing an issue:
I believe that typehinted property HAVE to be loadable when preloaded
edit: same for
Predis\ClientInterfaceinSymfony\Component\Cache\Traits\RedisClusterProxyHow to reproduce
composer require symfony/twig-bridge:^6.0League\HTMLToMarkdownis NOT installedPossible Solution
Additional Context
No response