Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Jul 8, 2021

This is build on top of the following refractoring: symfony/symfony#41390

Fixes:

TODO:

@alexander-schranz alexander-schranz changed the title Fix removing of session cookie after logout Remove roadrunner specific session handling Jul 8, 2021
@Nyholm
Copy link
Member

Nyholm commented Sep 6, 2021

Can we update this PR now when symfony/symfony#41390 is merged?

@alexander-schranz
Copy link
Member Author

@Nyholm rebased and updated the dependencies.

Copy link
Member

@Nyholm Nyholm left a 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) {
Copy link
Member

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?

Copy link
Member Author

@alexander-schranz alexander-schranz Sep 6, 2021

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.

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Thank you

@Nyholm Nyholm merged commit 7902a1f into php-runtime:main Sep 7, 2021
piku235 pushed a commit to piku235/runtime that referenced this pull request Oct 5, 2021
* 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
@alexander-schranz alexander-schranz deleted the patch-1 branch October 14, 2022 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants