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

Adding missing guest method to Authentificator interface #5939

Merged

Conversation

aik099
Copy link
Contributor

@aik099 aik099 commented Oct 1, 2014

Within auth filter provided with laravel/laravel the guest method of Authentificator interface is used (see https://github.com/laravel/laravel/blob/develop/app/Http/Filters/AuthFilter.php#L47). For now the Guard class implementing that interface has that method (see https://github.com/laravel/framework/blob/master/src/Illuminate/Auth/Guard.php#L115), but interface itself doesn't.

If anybody would need to implement their own authentification just based on interface then they will get Fatal Error because guest method would be called no matter what regardless of what interface says.

Within `auth` filter provided with `laravel/laravel` the `guest` method of `Authentificator` interface is used. For now the `Guard` class implementing that interface has that method, but interface itself doesn't.
taylorotwell added a commit that referenced this pull request Oct 2, 2014
Adding missing `guest` method to `Authentificator` interface
@taylorotwell taylorotwell merged commit 8818ec3 into laravel:master Oct 2, 2014
@aik099 aik099 deleted the add-missing-intetrface-method-fix branch October 2, 2014 07:24
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.

3 participants