From b53851ca7ed745837ecf6e6c95b17f3587b9d959 Mon Sep 17 00:00:00 2001 From: Alexander Obuhovich Date: Wed, 1 Oct 2014 21:43:51 +0300 Subject: [PATCH] Adding missing `guest` method to `Authentificator` interface 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. --- src/Illuminate/Contracts/Auth/Authenticator.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Illuminate/Contracts/Auth/Authenticator.php b/src/Illuminate/Contracts/Auth/Authenticator.php index 98cd4b07cb42..e8c29065cad1 100644 --- a/src/Illuminate/Contracts/Auth/Authenticator.php +++ b/src/Illuminate/Contracts/Auth/Authenticator.php @@ -9,6 +9,13 @@ interface Authenticator { */ public function check(); + /** + * Determine if the current user is a guest. + * + * @return bool + */ + public function guest(); + /** * Get the currently authenticated user. *