-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Symfony 5.3: autoloader error with DoctrineTransportFactory #41727
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
Got something similar here: https://travis-ci.org/github/Warxcell/files/jobs/773978302
Not sure if it's connected. |
@nicolas-grekas, I'm not using the messenger. So why would I need to add it as a dependency? |
I don't know honeslty. I just can tell you that for some reason, the test suite is trying to load this class, and that the failure can be worked around by adding this dependency... |
This line seems to trigger loading it. |
Thanks for investigating. |
@nicolas-grekas, thank you. This change would indeed fix the issue. |
Symfony version(s) affected: >= 5.3.0 (just tested 5.3.0, 5.3.1, 5.3.2-dev#9485292)
Description
While running tests with Symfony 5.3 I'm getting this error:
RuntimeException: The autoloader expected class "Symfony\Component\Messenger\Transport\Doctrine\DoctrineTransportFactory" to be defined in file "/home/travis/build/craue/CraueGeoBundle/vendor/composer/../symfony/symfony/src/Symfony/Component/Messenger/Transport/Doctrine/DoctrineTransportFactory.php". The file was found but the class was not in it, the class name or namespace probably has a typo.
I'm not actively using the Messenger component.
How to reproduce
Run the test suite of that bundle with latest dependencies.
Possible Solution
I could work around the issue by removing
symfony/symfony
from therequire-dev
section incomposer.json
and explicitly defining the needed deps instead, but that would require further modifications to my test setup (to work with a range of Symfony versions) I'd like to avoid.The text was updated successfully, but these errors were encountered: