Skip to content

Conversation

@dbu
Copy link
Contributor

@dbu dbu commented Mar 12, 2019

fix #512

@dbu dbu force-pushed the without-session branch from 85be046 to 929f9ca Compare March 12, 2019 13:23
@dbu dbu requested a review from Tobion March 12, 2019 13:24
$response->setVary($this->options['user_identifier_headers']);
$response->setPublic();
if (4 <= Kernel::MAJOR_VERSION && 1 <= Kernel::MINOR_VERSION) {
if ($this->hasSessionListener && version_compare('4.1', Kernel::VERSION, '<=')) {
Copy link
Contributor Author

@dbu dbu Mar 12, 2019

Choose a reason for hiding this comment

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

the old code would have been broken with symfony 5.0.
<= comparator seems to work with all php versions: https://3v4l.org/GCltV

Choose a reason for hiding this comment

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

The old code failed with 5.0, but works with 5.1: https://3v4l.org/PtroA

Copy link
Contributor Author

Choose a reason for hiding this comment

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

exactly. thanks for looking at this, reminds me that i should merge it.

@dbu dbu merged commit f8de402 into master Apr 12, 2019
@dbu dbu deleted the without-session branch April 12, 2019 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants