-
-
Notifications
You must be signed in to change notification settings - Fork 34
Remove roadrunner specific session handling #62
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Can we update this PR now when symfony/symfony#41390 is merged? |
06d6ee0
to
60d4d71
Compare
e3a9d9e
to
964e132
Compare
d2dd6b0
to
372a812
Compare
@Nyholm rebased and updated the dependencies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. Thank you.
Why was the HttpCache support removed?
{ | ||
$this->kernel = $kernel; | ||
$this->psrFactory = new Psr7\Factory\Psr17Factory(); | ||
$this->httpFoundationFactory = $httpFoundationFactory ?? new HttpFoundationFactory(); | ||
$this->httpMessageFactory = $httpMessageFactory ?? new PsrHttpFactory($this->psrFactory, $this->psrFactory, $this->psrFactory, $this->psrFactory); | ||
|
||
if ($kernel instanceof HttpCache) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why isn’t this need anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ($kernel instanceof HttpCache) {
was only needed to get the parameters from the wrapped kernel. As we are not longer need to handle the sessions here we could remove this. The support for HttpCache
is still here as HttpCache
implements HttpKernelInterface
and will handle the requests as expected.
Did update the tests which create the Runner instances.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
* Fix removing of session cookie after logout * Remove roadrunner specific session handling * Simplify also the Runner * Remove session reset * Fix php-cs * Increased required versions * Fix tests
This is build on top of the following refractoring: symfony/symfony#41390
Fixes:
TODO: