-
Notifications
You must be signed in to change notification settings - Fork 70
Laravel fixes #39
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
Laravel fixes #39
Conversation
|
||
if (is_a($this->application, '\Illuminate\Contracts\Http\Kernel')) { | ||
$this->application->terminate($syRequest, $syResponse); | ||
} |
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.
Does \Illuminate\Contracts\Http\Kernel
not implementTerminableInterface
?
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.
The only thing that Kernel implements, is just mentioned contract, that's why this one more case is required.
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.
Is there a reason why you don't go with $this->application instanceof \Illuminate\Contracts\Http\Kernel
?
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.
ping
There is still some work needed to get authorization working properly, as it's singleton that stores user object as property. I tried to reset it in the same way as cookies and sessions, but there is some problem with that. |
Authorization is finally done - i have replaced SessionGuard class with more suitable version, that clears itself after every request. It would be cool to have such thing builtin into Laravel, but at the moment i couldn't find any better solution. |
I've tried your implementation buy I'm getting an error at line 124 of Illuminate/Auth/SessionGuard.php "Fatal error: Call to a member function get() on null". I'm using Laravel 5.2 if this gives you any hint. I'll tell you if I find more info or the solution. Feel free to ask if you need something. |
@duxet can you also add a reset headers in this PR? |
@duxet any chance to fix the open errors with this pr? |
@duxet ping. We need to close if if duxet is finishing this PR. |
Superseeded |
No description provided.