Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
fabpot merged 4 commits intosymfony:masterfromGaryPEGEOT:feature/autoconfigure-calls
Apr 20, 2018
Merged

[DI] Allow autoconfigured calls in PHP#26768

fabpot merged 4 commits intosymfony:masterfromGaryPEGEOT:feature/autoconfigure-calls
Apr 20, 2018

Conversation

@GaryPEGEOT
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

Allow to auto-configured method calls like:

$container->registerForAutoconfiguration(LoggerAwareInterface::class)->addMethodCall('setLogger',array(newReference(LoggerInterface::class)));

Simperfit and Andrej-in-ua reacted with hooray emoji
@GaryPEGEOTGaryPEGEOT changed the titleAllow autoconfigured calls in PHP.[DI] Allow autoconfigured calls in PHP.Apr 3, 2018
@nicolas-grekasnicolas-grekas changed the title[DI] Allow autoconfigured calls in PHP.[DI] Allow autoconfigured calls in PHPApr 3, 2018
@nicolas-grekasnicolas-grekas added this to the4.1 milestoneApr 3, 2018
@GaryPEGEOT
Copy link
ContributorAuthor

@nicolas-grekas I can't reproduce the error in Framework Bundle (Travis pipeline), tests are OK when I run them. Any idea ?

@nicolas-grekas
Copy link
Member

LGTM.
Can you just add a test with the same method being defined manually AND via instanceof?
(it should be called twice: first by the instanceof, 2nd by the manual definition, isn't it?)

@GaryPEGEOT
Copy link
ContributorAuthor

Added in1d811cb

@fabpot
Copy link
Member

Thank you@GaryPEGEOT.

@fabpotfabpot merged commit1d811cb intosymfony:masterApr 20, 2018
fabpot added a commit that referenced this pull requestApr 20, 2018
…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.
@fabpotfabpot mentioned this pull requestMay 7, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

4 participants

@GaryPEGEOT@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp