-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
Autowire of repositories not working properly #241
Comments
@Gonzalo1987 I was facing the same issues, and realized that some sub-folders of |
Thanks for the support @thePanz ,
|
Seems related to: #166 |
Can you try to disable apcu and/or opcache in your develpment like explain here : #245 |
Sorry @maxhelias but still not autowiring the repository services :( |
And this solution : #226 (comment) |
I think it's related to filesystem/volumes sync between docker and the locale machine |
Yes, you are right, if I remove the line: Seems something related to the sync. A little annoying, it would be a docker desktop bug? |
I don't know if it's docker or the filesystem provided for the OS but I often hear synchronization problems on windows. |
Same issue here, any solution ? |
Hello,
I'm trying to dockerize a
Symfony 5.4
project that is currently working on, after follow the instructions here indicated: https://github.com/dunglas/symfony-docker/blob/main/docs/existing-project.mdand after build my dockerfile, I've get that my php container is rebooting randomly
This is probably caused, for some problem regarding the autowired services.
The folder 'App\Repository' seems not be autowired, that cause the container exit with code 1 trying to make the cache:clear.
(I've add manually that repository in the services.yaml making that error gone, but after that other services failed because other repositories failing to autowiring)
That folder should be autowired because the service.yaml config:
This project and configuration is working nicely with in local machine (w10) and in the prod server (centos) using php 8.0 with apache.
Moreover the other services of the project seems to be autowired perfectly, but I can't make this container work for this problem.
Any advice?
The text was updated successfully, but these errors were encountered: