Fixed Session Service Provider registry #1343
Conversation
f64b71a
to
b81b099
Compare
|
||
/** | ||
* Test that you can properly configure the Session class. | ||
*/ |
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.
I don't think we need this comment.
b81b099
to
c7b1c76
Compare
@fabpot. Those are updated. out of curiosity with doing conditionals on one line, how would you format a bunch of conditions so that the line isn't so long. $long_var_name == 1 || $long_var_name_b == 1 || ($long_var_name_2 == 2 || $long_var_name3 == 2) && $one_more_long_var_name ==5 |
Everyone has a large screen nowadays, so there is no need to cut lines at 80 chars. |
$session = $app['session']; | ||
|
||
$valid = $session->getBag('flashes') === $flash && $session->getBag('attributes') === $attrs; | ||
$this->assertTrue($valid); |
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.
I'd have be more precise like:
$this->assertSame($flash, $session->getBag('flashes');
$this->assertSame($attrs, $session->getBag('attributes');
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.
No problem, I was just trying to keep the whole 1 assertion per test.
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.
updated.
The service provider was registering the wrong parameters to the session listener instead of the actual session class Signed-off-by: RJ Garcia <rj@bighead.net>
c7b1c76
to
cecdb85
Compare
Thank you @ragboyjr. |
This PR was merged into the 2.0.x-dev branch. Discussion ---------- Fixed Session Service Provider registry The service provider was registering the wrong parameters to the session listener instead of the actual session class This fixes #1342 Signed-off-by: RJ Garcia <rj@bighead.net> Commits ------- cecdb85 Fixed Session Service Provider registry
The service provider was registering the wrong parameters
to the session listener instead of the actual session class
This fixes #1342
Signed-off-by: RJ Garcia rj@bighead.net