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] Add support to environment variables APP_ENV/DEBUG in KernelTestCase#24177

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:3.3fromyceruto:test_env_vars
Sep 13, 2017

Conversation

@yceruto
Copy link
Member

QA
Branch?3.4
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketssymfony/recipes#170 (comment)
LicenseMIT
Doc PR-

/cc@fabpot

@yceruto
Copy link
MemberAuthor

yceruto commentedSep 12, 2017
edited
Loading

I guess fabbot failure (unrelated) should be fixed from2.7

);
if (isset($options['environment'])) {
$env =$options['environment'];
}elseif (isset($_SERVER['APP_ENV']) ||isset($_ENV['APP_ENV'])) {
Copy link
Member

Choose a reason for hiding this comment

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

I think I would split this in two:

if (isset($options['environment'])) {$env =$options['environment'];}elseif (isset($_SERVER['APP_ENV'])) {$env =$_SERVER['APP_ENV'];}elseif (isset($_ENV['APP_ENV'])) {$env =$_ENV['APP_ENV'];}else {$env ='test';}

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Fixed.

@xabbuh
Copy link
Member

Should we merge this one as a bugfix into the3.3 branch instead?

@yceruto
Copy link
MemberAuthor

As a bugfix should be into2.7, no? Let's me know the final decision. I'm for a bugfix rather than a feature ( similar to#24115)

@fabpot
Copy link
Member

As env vars are "officially" supported since 3.3, I'd vote for a merge in 3.3

@ycerutoyceruto changed the base branch from3.4 to3.3September 12, 2017 22:57
@yceruto
Copy link
MemberAuthor

Done.

@nicolas-grekasnicolas-grekas added this to the3.3 milestoneSep 13, 2017
@nicolas-grekas
Copy link
Member

Thank you@yceruto.

@nicolas-grekasnicolas-grekas merged commit8d56744 intosymfony:3.3Sep 13, 2017
nicolas-grekas added a commit that referenced this pull requestSep 13, 2017
…_ENV/DEBUG in KernelTestCase (yceruto)This PR was merged into the 3.3 branch.Discussion----------[FrameworkBundle] Add support to environment variables APP_ENV/DEBUG in KernelTestCase| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |symfony/recipes#170 (comment)| License       | MIT| Doc PR        | -/cc@fabpotCommits-------8d56744 Add support to environment variables APP_ENV/DEBUG in KernelTestCase
@ycerutoyceruto deleted the test_env_vars branchSeptember 13, 2017 10:42
@fabpotfabpot mentioned this pull requestOct 5, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@xabbuhxabbuhxabbuh approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

5 participants

@yceruto@xabbuh@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp