-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
TypeError on components Mailer - MonologBridge - SwiftMailer #31906
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
Comments
I cannot reproduce what you describe. Can you check out the application I created at https://github.com/xabbuh/issue-31906 and modify it so that we are able to reproduce it? |
Okey, I will try. |
Already fixed by #31854? |
I updated to 4.3.1 and nothing. |
Does it mean we can close here? |
I reproduced a error. I uploaded to: https://github.com/bambucha4/issue-31906/tree/error. The handler swift in monolog_prod.yaml make this problem.
|
Can You confirm this issue ? |
Thanks, I can reproduce it now. |
see #31928 |
Thank you for the answer ;) |
…ler (xabbuh) This PR was merged into the 4.3 branch. Discussion ---------- [FrameworkBundle] avoid service id conflicts with Swiftmailer | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #31906 | License | MIT | Doc PR | Commits ------- 5ce0ede avoid service id conflicts with Swiftmailer
Symfony version(s) affected: 4.3.x
Description
I have a big project using almost all components by Symfony. I installed a new mailer component and 6 bridges to check if all everything working. In dev envinroment mode everyting is alright, but when I switch to production envinroment mode I get:
TypeError: Argument 1 passed to Symfony\Bridge\Monolog\Handler\SwiftMailerHandler::setTransport() must implement interface Swift_Transport, instance of Symfony\Component\Mailer\Transport\NullTransport given, called in E:\PROJEKTY\intranet\var\cache\prod\ContainerCxQZRCx\srcApp_KernelProdContainer.php on line 4905 in E:\PROJEKTY\intranet\vendor\symfony\monolog-bridge\Handler\SwiftMailerHandler.php on line 31
My require in composer.json:
How to reproduce
Possible Solution
I dont know.
Additional context

The text was updated successfully, but these errors were encountered: