Skip to content
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

[5.8] Fix fake dispatcher issue #28131

Closed

Conversation

imanghafoori1
Copy link
Contributor

Integration tests proof that it will work with both built-in session guard or any other custom guard whether it has a dispatcher or not.

Note : some build-in guards like Token guard does dispatch any events, hence there is no setDispatcher method or any dispatcher on it.
So there are 2 types of guards.

which I think a contract (interface) is missing here, in order to mark the SessionGuard class or any other custom guard as an event dispatching guard, and enforce setDispatcher and getDispatcher methods on them.)

So the clunky method_exists check won't be needed.

@GrahamCampbell GrahamCampbell changed the title Fix fake dispatcher issue [5.8] Fix fake dispatcher issue Apr 6, 2019
@imanghafoori1 imanghafoori1 force-pushed the fix_fake_dispatcher_issue branch 2 times, most recently from f013232 to 343234b Compare April 7, 2019 09:54
@taylorotwell
Copy link
Member

Doesn't describe what bug is actually being fixed.

@imanghafoori1
Copy link
Contributor Author

imanghafoori1 commented Apr 7, 2019

@taylorotwell
Oh, I forgot to mention the issue number
#27451
Sorry for that.

TBlindaruk added a commit to TBlindaruk/laravel-framework that referenced this pull request Apr 16, 2019
Description:
Integration tests proof that it will work with both built-in session guard or any other custom guard whether it has a dispatcher or not.

Note : some build-in guards like Token guard does dispatch any events, hence there is no `setDispatcher ` method or any dispatcher on it.
So there are 2 types of guards.

which I think a contract (interface) is missing here, in order to mark the SessionGuard class or any other custom guard as an event dispatching guard, and enforce `setDispatcher` and `getDispatcher` methods on them.)

So the clunky `method_exists` check won't be needed.

Re-submit: laravel#28131
fixed: laravel#27451
TBlindaruk added a commit to TBlindaruk/laravel-framework that referenced this pull request Apr 16, 2019
Description:
Integration tests proof that it will work with both built-in session guard or any other custom guard whether it has a dispatcher or not.

Note : some build-in guards like Token guard does dispatch any events, hence there is no `setDispatcher ` method or any dispatcher on it.
So there are 2 types of guards.

which I think a contract (interface) is missing here, in order to mark the SessionGuard class or any other custom guard as an event dispatching guard, and enforce `setDispatcher` and `getDispatcher` methods on them.)

So the clunky `method_exists` check won't be needed.

Re-submit: laravel#28131
fixed: laravel#27451
taylorotwell pushed a commit to illuminate/auth that referenced this pull request Apr 17, 2019
Description:
Integration tests proof that it will work with both built-in session guard or any other custom guard whether it has a dispatcher or not.

Note : some build-in guards like Token guard does dispatch any events, hence there is no `setDispatcher ` method or any dispatcher on it.
So there are 2 types of guards.

which I think a contract (interface) is missing here, in order to mark the SessionGuard class or any other custom guard as an event dispatching guard, and enforce `setDispatcher` and `getDispatcher` methods on them.)

So the clunky `method_exists` check won't be needed.

Re-submit: laravel/framework#28131
fixed: laravel/framework#27451
@imanghafoori1 imanghafoori1 deleted the fix_fake_dispatcher_issue branch May 29, 2019 14:08
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