diff options
author | Sam Light <samlight1994@gmail.com> | 2022-09-09 15:32:04 +0100 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2022-09-09 15:32:04 +0100 |
commit | 23004082655a3e4f6232010ed2c8095be9999bcf (patch) | |
tree | 5b403ef9c2152e714043b4ab1f7c9a9598d4026b | |
parent | 40d12519b29173e291d927cd9100300d2bb181c1 (diff) |
Made auth middleware class abstract0.0.2
-rw-r--r-- | src/Middleware/ScormPlayerAuthMiddleware.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Middleware/ScormPlayerAuthMiddleware.php b/src/Middleware/ScormPlayerAuthMiddleware.php index 8044821..0444f09 100644 --- a/src/Middleware/ScormPlayerAuthMiddleware.php +++ b/src/Middleware/ScormPlayerAuthMiddleware.php @@ -14,7 +14,7 @@ use Illuminate\Http\Response; use Illuminate\Support\Facades\Cache; -class ScormPlayerAuthMiddleware +abstract class ScormPlayerAuthMiddleware { private $cacheTimeout; @@ -84,8 +84,5 @@ class ScormPlayerAuthMiddleware throw new \Exception('Failed to find module from route'); } - protected function authorize(Request $req, Scorm $module) : bool - { - return false; - } + abstract protected function authorize(Request $req, Scorm $module) : bool; } |