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

[FrameworkBundle] Display a proper warning for deprecated --env and --no-debug options#29002

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 1 commit intosymfony:masterfromchalasr:visible-deprecated-opts
Oct 28, 2018

Conversation

@chalasr
Copy link
Member

@chalasrchalasr commentedOct 27, 2018
edited
Loading

QA
Branch?4.2
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

Currently hidden (remember#23328)

if ($input->hasParameterOption('--no-debug',true)) {
@trigger_error('The "--no-debug" option is deprecated since Symfony 4.2. Set the "APP_DEBUG" environment variable to "0" instead.',E_USER_DEPRECATED);
$notice ='The "--no-debug" option is deprecated since Symfony 4.2. Set the "APP_DEBUG" environment variable to "0" instead.';
($io ?:newSymfonyStyle($input,$outputinstanceof ConsoleOutputInterface ?$output->getErrorOutput() :$output))->warning($notice);
Copy link
Contributor

Choose a reason for hiding this comment

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

Not much relevant, but:

- $io ?: new SymfonyStyle+ $io ?? new SymfonyStyle

if ($input->hasParameterOption(array('-e','--env'),true)) {
@trigger_error('The "--env" option and its "-e" shortcut are deprecated since Symfony 4.2. Set the "APP_ENV" environment variable instead.',E_USER_DEPRECATED);
$notice ='The "--env" option and its "-e" shortcut are deprecated since Symfony 4.2. Set the "APP_ENV" environment variable instead.';
$io =newSymfonyStyle($input,$outputinstanceof ConsoleOutputInterface ?$output->getErrorOutput() :$output);
Copy link
Contributor

Choose a reason for hiding this comment

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

What about using->getErrorStyle() instead?

@chalasrchalasrforce-pushed thevisible-deprecated-opts branch 2 times, most recently froma195b0c toe3aadcbCompareOctober 28, 2018 11:45
{
if ($input->hasParameterOption(array('-e','--env'),true)) {
@trigger_error('The "--env" option and its "-e" shortcut are deprecated since Symfony 4.2. Set the "APP_ENV" environment variable instead.',E_USER_DEPRECATED);
$notice ='The "--env" option and its "-e" shortcut are deprecated since Symfony 4.2. Set the "APP_ENV" environment variable instead.';
Copy link
Member

Choose a reason for hiding this comment

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

... since Symfony 4.2, set the ...

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

done

@chalasrchalasrforce-pushed thevisible-deprecated-opts branch frome3aadcb toa40048eCompareOctober 28, 2018 15:28
@fabpot
Copy link
Member

Thank you@chalasr.

@fabpotfabpot merged commita40048e intosymfony:masterOct 28, 2018
fabpot added a commit that referenced this pull requestOct 28, 2018
…d --env and --no-debug options (chalasr)This PR was merged into the 4.2-dev branch.Discussion----------[FrameworkBundle] Display a proper warning for deprecated --env and --no-debug options| Q             | A| ------------- | ---| Branch?       | 4.2| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aCurrently hidden (remember#23328)Commits-------a40048e [FrameworkBundle] Display a proper warning for deprecated --env and --no-debug options
@chalasrchalasr deleted the visible-deprecated-opts branchOctober 28, 2018 15:33
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

+2 more reviewers

@TobionTobionTobion approved these changes

@ogizanagiogizanagiogizanagi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

5 participants

@chalasr@fabpot@Tobion@ogizanagi@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp