symfony / swiftmailer-bundle

Symfony Swiftmailer Bundle
https://symfony.com/swiftmailer-bundle
MIT License
1.56k stars 151 forks source link

Exception when getting swiftmailer.mailer using container. #312

Closed xBoneso closed 2 years ago

xBoneso commented 3 years ago

"The "swiftmailer.mailer" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead"

I get that exception when i try getting swiftmailer.mail using container, what's the fix for this? I'm experienced in symfony at all so If you could help me like you're helping a kid walk that would be pretty cool.

marphi commented 2 years ago

It is related to https://github.com/symfony/swiftmailer-bundle/pull/313