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

[DependencyInjection] Add support for tagged iterators/locators exclude option to xml and yaml#47902

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

Conversation

@HypeMC
Copy link
Member

QA
Branch?6.2
Bug fix?no
New feature?yes
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

Followup to#44774 .

The previous PR added support for theexclude option to php attributes & php config files, but not xml or yaml, making it impossible to use this feature with those config types.
Also, since the support for this feature was never added to the yaml & xml dumpers, the generatedApp_KernelDevDebugContainer.xml is actually incorrect (possibly should be considered a bug), eg the following php configuration:

$services->set(TestExclude::class)        ->public()        ->args([tagged_iterator('app.test', exclude: TestExclude::class),        ]);

produces this xml file:

    <serviceid="App\Service\TestExclude"class="App\Service\TestExclude"public="true">      <tagname="app.test"/>      <argumenttype="tagged_iterator"tag="app.test"/>    </service>

With this PR, the dumpers are now aware of theexclude option:

    <service public="true">      <tag name="app.test"/>-     <argument type="tagged_iterator" tag="app.test"/>+     <argument type="tagged_iterator" tag="app.test" exclude="App\Service\TestExclude"/>    </service>

@carsonbotcarsonbot added this to the6.2 milestoneOct 18, 2022
@carsonbotcarsonbot changed the title[DI] Add support for tagged iterators/locators exclude option to xml and yaml[DependencyInjection] Add support for tagged iterators/locators exclude option to xml and yamlOct 18, 2022
@HypeMCHypeMCforce-pushed thetagged-exclude-with-all-types branch froma166138 to9afa5c9CompareOctober 18, 2022 21:44
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Neat, thanks!

@nicolas-grekas
Copy link
Member

Thank you@HypeMC.

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

6.2

Development

Successfully merging this pull request may close these issues.

3 participants

@HypeMC@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp