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] add id of referencing service when a deprecated alias is found#29995

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
nicolas-grekas merged 1 commit intosymfony:masterfromnicolas-grekas:alias+
Jan 28, 2019

Conversation

@nicolas-grekas
Copy link
Member

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

Improves#29968 a bit for DX.

@javiereguiluz
Copy link
Member

Nice improvement! Not sure if it's possible, but I'd reword the error message:

As referenced by "alias": the "deprecated_foo_alias" service aliasis deprecated. You should stop using it, as it will soon be removed.

like this:

The "deprecated_foo_alias" service alias referenced by "alias"is deprecated. You should stop using it, as it will soon be removed.

@nicolas-grekas
Copy link
MemberAuthor

I'd happily improve the message, but your suggestion is not possible, see L65 how the message is constructed. We can only append or prepend to the message conveyed by the alias.

javiereguiluz reacted with thumbs up emoji

Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

Nice!

@javiereguiluzjaviereguiluz added the DXDX = Developer eXperience (anything that improves the experience of using Symfony) labelJan 28, 2019
@stof
Copy link
Member

Note that this PR is renaming the placeholder used in the message. When it gets merged, the blog post published today should be updated to reflect the change.

@nicolas-grekasnicolas-grekas merged commitb124fb7 intosymfony:masterJan 28, 2019
nicolas-grekas added a commit that referenced this pull requestJan 28, 2019
… is found (nicolas-grekas)This PR was merged into the 4.3-dev branch.Discussion----------[DI] add id of referencing service when a deprecated alias is found| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Improves#29968 a bit for DX.Commits-------b124fb7 [DI] add id of referencing service when a deprecated alias is found
@stof
Copy link
Member

@nicolas-grekas with your change to move the trigger_error outside the loop, what happens if you havenon-deprecated alias -> deprecated alias -> actual service ? Do we still get a warning somewhere (so that the author ofnon-deprecated alias can know that they should update their alias) ?

@nicolas-grekasnicolas-grekas deleted the alias+ branchJanuary 28, 2019 16:44
@nicolas-grekas
Copy link
MemberAuthor

Do we still get a warning somewhere (so that the author of non-deprecated alias can know that they should update their alias) ?

yes, because of the loop in process (see L32)

@javiereguiluz
Copy link
Member

@stof thanks for this warning. The blog post has been updated accordingly.

javiereguiluz added a commit to symfony/symfony-docs that referenced this pull requestJan 29, 2019
…iluz)This PR was squashed before being merged into the master branch (closes#10937).Discussion----------Documented the deprecation of service aliasesIt documentssymfony/symfony#29968 but it contains the changes of the pending PRsymfony/symfony#29995Commits-------d5d87e6 Documented the deprecation of service aliases
XuruDragon pushed a commit to XuruDragon/symfony that referenced this pull requestFeb 4, 2019
…ebug:autowiring| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | n/aFix and improves a bit PRsymfony#29968 andsymfony#29995
XuruDragon pushed a commit to XuruDragon/symfony that referenced this pull requestFeb 4, 2019
…ebug:autowiring| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | n/aFix and improves a bit PRsymfony#29968 andsymfony#29995
XuruDragon pushed a commit to XuruDragon/symfony that referenced this pull requestFeb 4, 2019
…ebug:autowiring| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | n/aFix and improves a bit PRsymfony#29968 andsymfony#29995
XuruDragon pushed a commit to XuruDragon/symfony that referenced this pull requestFeb 4, 2019
…ebug:autowiring| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | n/aFix and improves a bit PRsymfony#29968 andsymfony#29995
XuruDragon pushed a commit to XuruDragon/symfony that referenced this pull requestFeb 5, 2019
…ebug:autowiring| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | n/aFix and improves a bit PRsymfony#29968 andsymfony#29995
XuruDragon pushed a commit to XuruDragon/symfony that referenced this pull requestFeb 6, 2019
…ebug:autowiring| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | n/aFix and improves a bit PRsymfony#29968 andsymfony#29995
XuruDragon pushed a commit to XuruDragon/symfony that referenced this pull requestFeb 6, 2019
…ebug:autowiring| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | n/aFix and improves a bit PRsymfony#29968 andsymfony#29995
XuruDragon pushed a commit to XuruDragon/symfony that referenced this pull requestFeb 6, 2019
…ebug:autowiring| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | n/aFix and improves a bit PRsymfony#29968 andsymfony#29995
XuruDragon pushed a commit to XuruDragon/symfony that referenced this pull requestFeb 6, 2019
…ebug:autowiring| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | n/aFix and improves a bit PRsymfony#29968 andsymfony#29995
XuruDragon pushed a commit to XuruDragon/symfony that referenced this pull requestFeb 7, 2019
…ebug:autowiring| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | n/aFix and improves a bit PRsymfony#29968 andsymfony#29995
nicolas-grekas added a commit that referenced this pull requestFeb 8, 2019
…ed aliases in debug:autowiring (XuruDragon)This PR was merged into the 4.3-dev branch.Discussion----------[DependencyInjection] Added information about deprecated aliases in debug:autowiring| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | n/aFix and improves a bit PR#29968 and#29995![Screenshot](https://i.imgur.com/GDj2NIY.png)Commits-------3d2378d [DependencyInjection] Added information about deprecated aliases in debug:autowiring
@nicolas-grekasnicolas-grekas modified the milestones:next,4.3Apr 30, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

@stofstofstof approved these changes

Assignees

No one assigned

Labels

DependencyInjectionDXDX = Developer eXperience (anything that improves the experience of using Symfony)Status: Reviewed

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@javiereguiluz@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp