Skip to content

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

Closed
wants to merge 4 commits into from
Closed

Laravel fixes #39

wants to merge 4 commits into from

Conversation

duxet
Copy link

@duxet duxet commented May 30, 2016

No description provided.


if (is_a($this->application, '\Illuminate\Contracts\Http\Kernel')) {
$this->application->terminate($syRequest, $syResponse);
}
Copy link
Member

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?

Copy link
Author

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.

Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

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

ping

@duxet
Copy link
Author

duxet commented May 30, 2016

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.

@duxet
Copy link
Author

duxet commented May 30, 2016

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.

@duxet duxet mentioned this pull request Jun 1, 2016
@uniring
Copy link

uniring commented Jun 2, 2016

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.

@OSDDQD
Copy link

OSDDQD commented Jun 7, 2016

@duxet can you also add a reset headers in this PR?

@andig
Copy link
Contributor

andig commented Sep 16, 2016

@duxet any chance to fix the open errors with this pr?

@marcj
Copy link
Member

marcj commented Feb 16, 2017

@duxet ping. We need to close if if duxet is finishing this PR.

@andig
Copy link
Contributor

andig commented Jun 16, 2017

Superseeded

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.

5 participants