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] Fix bindings and tagged_locator#32722

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

@deguif
Copy link
Contributor

@deguifdeguif commentedJul 24, 2019
edited
Loading

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

Workingtagged_locator

App\XXX:arguments:$taggedLocator:!tagged_locator { tag: 'my_tag', index_by: 'my_key' }

Not workingtagged_locator

App\XXX:bind:$taggedLocator:!tagged_locator { tag: 'my_tag', index_by: 'my_key' }

CurrentlyResolveBindingsPass is executed afterServiceLocatorTagPass, which produces empty service locators when usingbind.
I'm proposing to change the optimization passes order, so that this issue is solved.
I'm not confident with the impact, so let's discuss about it.

@deguifdeguif changed the titleFix bindings and tagged_locator[Dependency Injection] Fix bindings and tagged_locatorJul 24, 2019
@deguifdeguif changed the title[Dependency Injection] Fix bindings and tagged_locator[DependencyInjection] Fix bindings and tagged_locatorJul 24, 2019
@nicolas-grekasnicolas-grekas added this to the4.3 milestoneJul 24, 2019
@deguifdeguifforce-pushed thefix-tagged-locator-bindings branch 2 times, most recently fromd609dce to43af679CompareJuly 24, 2019 16:43
@deguif
Copy link
ContributorAuthor

Ok, it's ready.
Finally I needed to change theCheckDefinitionValidityPass order too, asServiceLocatorTagPass add some definition classes to service locator which haven't them yet before this pass andCheckDefinitionValidityPass checks that each definition has a class set.

@deguifdeguifforce-pushed thefix-tagged-locator-bindings branch from0223e71 tobf4c713CompareJuly 25, 2019 06:48
@nicolas-grekas
Copy link
Member

Thank you@deguif.

@nicolas-grekasnicolas-grekas merged commitbf4c713 intosymfony:4.3Jul 30, 2019
nicolas-grekas added a commit that referenced this pull requestJul 30, 2019
…uif)This PR was merged into the 4.3 branch.Discussion----------[DependencyInjection] Fix bindings and tagged_locator| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        |Working `tagged_locator````yamlApp\XXX:    arguments:        $taggedLocator: !tagged_locator { tag: 'my_tag', index_by: 'my_key' }```Not working `tagged_locator````yamlApp\XXX:    bind:        $taggedLocator: !tagged_locator { tag: 'my_tag', index_by: 'my_key' }```Currently `ResolveBindingsPass` is executed after `ServiceLocatorTagPass`, which produces empty service locators when using `bind`.I'm proposing to change the optimization passes order, so that this issue is solved.I'm not confident with the impact, so let's discuss about it.Commits-------bf4c713 Fix bindings and tagged_locator
@deguifdeguif deleted the fix-tagged-locator-bindings branchJuly 31, 2019 12:48
@fabpotfabpot mentioned this pull requestAug 26, 2019
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.3

Development

Successfully merging this pull request may close these issues.

3 participants

@deguif@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp