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] Use more clear message when unused environment variables detected#22976

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

Closed
voronkovich wants to merge2 commits intosymfony:3.2fromvoronkovich:unused-envs-message
Closed

Conversation

@voronkovich
Copy link
Contributor

@voronkovichvoronkovich commentedMay 30, 2017
edited
Loading

QA
Branch?3.2
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#22955
LicenseMIT

Old error message:

Incompatible use of dynamic environment variables "DATABASE_URL", "MAILER_URL" found in parameters.

New error message:

Environment variables "DATABASE_URL", "MAILER_URL" are never used. Please, check your container's configuration.

@nicolas-grekas
Copy link
Member

shound't this be for 3.2?

@voronkovichvoronkovich changed the base branch frommaster to3.2May 31, 2017 12:00
@voronkovichvoronkovich changed the base branch from3.2 tomasterMay 31, 2017 12:02
@voronkovichvoronkovich changed the base branch frommaster to3.2May 31, 2017 12:26
@voronkovich
Copy link
ContributorAuthor

@nicolas-grekas, I've changed the branch to 3.2

@nicolas-grekasnicolas-grekas added this to the3.2 milestoneMay 31, 2017
class EnvParameterExceptionextends InvalidArgumentException
{
publicfunction__construct(array$usedEnvs,\Exception$previous =null)
publicfunction__construct(array$envs,$message,\Exception$previous =null)

Choose a reason for hiding this comment

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

in order to not break BC, the $message arg should be added last, and should be optional ($message = 'Incompatible...')

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@nicolas-grekas, You're right. Fixed.

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.

👍

@fabpot
Copy link
Member

Thank you@voronkovich.

fabpot added a commit that referenced this pull requestJun 3, 2017
…nvironment variables detected (voronkovich)This PR was squashed before being merged into the 3.2 branch (closes#22976).Discussion----------[DependencyInjection] Use more clear message when unused environment variables detected| Q             | A| ------------- | ---| Branch?       |3.2| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#22955| License       | MITOld error message:```Incompatible use of dynamic environment variables "DATABASE_URL", "MAILER_URL" found in parameters.```New error message:```Environment variables "DATABASE_URL", "MAILER_URL" are never used. Please, check your container's configuration.```Commits-------6dbdb1b [DependencyInjection] Use more clear message when unused environment variables detected
@fabpotfabpot closed thisJun 3, 2017
@fabpotfabpot mentioned this pull requestJun 6, 2017
@fabpotfabpot mentioned this pull requestJul 4, 2017
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

Labels

None yet

Projects

None yet

Milestone

3.2

Development

Successfully merging this pull request may close these issues.

3 participants

@voronkovich@nicolas-grekas@fabpot

[8]ページ先頭

©2009-2025 Movatter.jp