Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[DI] Allow autoconfigured calls in PHP#26768
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
GaryPEGEOT commentedApr 6, 2018
@nicolas-grekas I can't reproduce the error in Framework Bundle (Travis pipeline), tests are OK when I run them. Any idea ? |
nicolas-grekas commentedApr 9, 2018
LGTM. |
GaryPEGEOT commentedApr 10, 2018
Added in |
fabpot commentedApr 20, 2018
Thank you@GaryPEGEOT. |
…aryPEGEOT)This PR was merged into the 4.1-dev branch.Discussion----------[DI] Allow autoconfigured calls in PHP| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? |no| Deprecations? | no| Tests pass? | yes| Fixed tickets || License | MIT| Doc PR |Allow to auto-configured method calls like:```php$container->registerForAutoconfiguration(LoggerAwareInterface::class)->addMethodCall('setLogger', array(new Reference(LoggerInterface::class)));```Commits-------1d811cb Add test for both _intanceof and manual method setting.71bf3ce CS fix15c45ee Add more test-cases2612f81 Allow autoconfigured calls in PHP.
Allow to auto-configured method calls like: