-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Autowiring is not working properly in Symfony 3.2.7 #22309
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
Also reported as a comment here: #22254 (comment) What error do you get? |
@nicolas-grekas PHP 7.1.3. Commenting the line you mentioned didn't help. Reproducing it on Standard Edition will probably take some time. Maybe next week. |
@nicolas-grekas here is the example on the fresh symfony installation. Just: #> git clone https://github.com/secit-pl/symfony-issue-22309-example.git When you navigate to the / rotue you'll see the error 500. The only error reported by symfony is the standard PHP Error:
I've got the error on PHP 7.1.1 (Windows) and 7.1.3 (Linux). |
@nicolas-grekas as @enumag wrote, commenting the line you mentioned didn't help (tested on PHP 7.1.1). |
Fixed in #22311, thanks for the reproducer |
This PR was merged into the 2.8 branch. Discussion ---------- [DI] Fix second auto-registration | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22309 | License | MIT | Doc PR | - My bad Commits ------- c02de84 [DI] Fix second auto-registration
@nicolas-grekas Thanks, the fix works for me. |
I'm not able to autowire the Symfony\Component\Translation\DataCollectorTranslator to more than one service in Symfony 3.2.7. In 3.2.6 all worked fine.
Example code:
Service1.php
Service 2:
services.yml
The part of the production cache:
var/cache/prod/appProdProjectContainer.php
As you see only the first service was properly autowired.
The text was updated successfully, but these errors were encountered: