From 23004082655a3e4f6232010ed2c8095be9999bcf Mon Sep 17 00:00:00 2001 From: Sam Light Date: Fri, 9 Sep 2022 15:32:04 +0100 Subject: Made auth middleware class abstract --- src/Middleware/ScormPlayerAuthMiddleware.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3