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] Make session-related services extra-lazy#25836

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:masterfromnicolas-grekas:extra-lazy-session
Jan 23, 2018

Conversation

@nicolas-grekas
Copy link
Member

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


protectedfunctiongetSession()
{
if (!$this->container->has('session')) {
Copy link
Member

Choose a reason for hiding this comment

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

$this->container can be null now

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

good catch, fixed

@nicolas-grekasnicolas-grekasforce-pushed theextra-lazy-session branch 2 times, most recently fromf7ae524 to8600644CompareJanuary 18, 2018 14:12
Copy link
Member

@chalasrchalasr left a comment

Choose a reason for hiding this comment

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

closures could have some typehints/return types

class SessionListenerextends AbstractSessionListener
{
private$container;

Copy link
Member

Choose a reason for hiding this comment

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

Why is it removed?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

moved to the parent

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit5f53558 intosymfony:masterJan 23, 2018
fabpot added a commit that referenced this pull requestJan 23, 2018
…(nicolas-grekas)This PR was merged into the 4.1-dev branch.Discussion----------[HttpKernel] Make session-related services extra-lazy| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Commits-------5f53558 [HttpKernel] Make session-related services extra-lazy
@nicolas-grekasnicolas-grekas deleted the extra-lazy-session branchJanuary 28, 2018 13:17
@fabpotfabpot mentioned this pull requestMay 7, 2018
Nyholm added a commit that referenced this pull requestOct 30, 2020
This PR was merged into the 4.4 branch.Discussion----------[HttpKernel] Remove Symfony 3 compatibility code| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       |Fix#38892| License       | MIT| Doc PR        | N/AThis PR removes dead code that checks for the presence of the `Request::setSessionFactory()` method.That method was added with#25836 in HttpFoundation 4.1. Since HttpKernel requires at least HttpFoundation 4.4, we can assume that the method is always present and thus simplify some code here.Additionally, I also fix the doc block as described in#38892. 😉Commits-------b9ca866 Remove Symfony 3 compatibility code.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp