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

[HttpKernel] Set the default locale early#29483

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

@thewilkybarkid
Copy link
Contributor

@thewilkybarkidthewilkybarkid commentedDec 6, 2018
edited
Loading

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

Similar to#29186, the default locale isn't set till after the router so isn't available when trying to handle errors there (well, only thedefault default locale is).

@thewilkybarkid
Copy link
ContributorAuthor

Failures are unrelated.

@chalasrchalasr added this to the3.4 milestoneDec 9, 2018
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.

makes sense to me

// must be registered after the Router to have access to the _locale
KernelEvents::REQUEST =>array(array('onKernelRequest',16)),
KernelEvents::REQUEST =>array(
array('onKernelRequestEarly',100),

Choose a reason for hiding this comment

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

should we discuss the "100"? (I didn't check - just asking :) )

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Was matching the priority from#29186; only thing higher in core isSessionListener (andDebugHandlersListener). IMO these should be set as early as possible (so maybe even higher?).

Copy link
Contributor

@ro0NLro0NL left a comment

Choose a reason for hiding this comment

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

might deserve a changelog entry

@nicolas-grekas
Copy link
Member

might deserve a changelog entry

which is another hint this should go on master - same as#29186 :)

ro0NL reacted with thumbs up emoji

@thewilkybarkidthewilkybarkid changed the base branch from3.4 tomasterDecember 13, 2018 10:12
@fabpot
Copy link
Member

Thank you@thewilkybarkid.

@fabpotfabpot merged commit02c9f35 intosymfony:masterJan 2, 2019
fabpot added a commit that referenced this pull requestJan 2, 2019
…kid)This PR was merged into the 4.3-dev branch.Discussion----------[HttpKernel] Set the default locale early| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Similar to#29186, the default locale isn't set till after the router so isn't available when trying to handle errors there (well, only the _default_ default locale is).Commits-------02c9f35 Set the default locale early
@thewilkybarkidthewilkybarkid deleted the early-default-locale branchJanuary 2, 2019 11:11
@fabpotfabpot mentioned this pull requestMay 9, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@stofstofstof requested changes

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@ro0NLro0NLro0NL approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

8 participants

@thewilkybarkid@nicolas-grekas@fabpot@stof@ro0NL@xabbuh@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp