From 58364493c97fb96a998bf5ab7fd8330460db443b Mon Sep 17 00:00:00 2001 From: Aaron Moses Date: Sun, 22 Dec 2019 22:19:56 +0000 Subject: [PATCH] lean up middleware --- middleware/SessionAuthMiddleware.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/middleware/SessionAuthMiddleware.php b/middleware/SessionAuthMiddleware.php index 02a46679..9d5109bb 100644 --- a/middleware/SessionAuthMiddleware.php +++ b/middleware/SessionAuthMiddleware.php @@ -9,20 +9,14 @@ class SessionAuthMiddleware extends BaseMiddleware { public function __construct(\Slim\Container $container, string $sessionCookieName) { - #$fp = fopen('/config/data/sql.log', 'a'); - #$time_start = microtime(true); parent::__construct($container); $this->SessionCookieName = $sessionCookieName; - #fwrite($fp, "£££ SessionAuthMiddleware - construction time : " . round((microtime(true) - $time_start),6) . "\n"); - #fclose($fp); } protected $SessionCookieName; public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, callable $next) { - #$fp = fopen('/config/data/sql.log', 'a'); - #$time_start = microtime(true); $route = $request->getAttribute('route'); $routeName = $route->getName(); $sessionService = SessionService::getInstance(); @@ -63,8 +57,6 @@ class SessionAuthMiddleware extends BaseMiddleware $response = $next($request, $response); } } - #fwrite($fp, "£££ SessionAuthMiddleware - invocation time : " . round((microtime(true) - $time_start),6) . "\n"); - #fclose($fp); return $response; }