From 8feaf52e3339b244c2a94b621d85ae79cc0c07ce Mon Sep 17 00:00:00 2001 From: Ibrahim Date: Wed, 11 Dec 2024 00:42:28 +0300 Subject: [PATCH] doc: Added Session Middleware Docs --- .../framework/middleware/StartSessionMiddleware.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/webfiori/framework/middleware/StartSessionMiddleware.php b/webfiori/framework/middleware/StartSessionMiddleware.php index 389b6223..93e298c0 100644 --- a/webfiori/framework/middleware/StartSessionMiddleware.php +++ b/webfiori/framework/middleware/StartSessionMiddleware.php @@ -6,9 +6,16 @@ use webfiori\framework\session\SessionsManager; use webfiori\http\Request; use webfiori\http\Response; - +/** + * A middleware which is used to initialize sessions. + */ class StartSessionMiddleware extends AbstractMiddleware { - + /** + * Creates new instance of the class. + * + * By default, the middleware is part of the group 'web'. + * The priority of the middleware is PHP_INT_MAX. + */ public function __construct() { parent::__construct('start-session'); $this->setPriority(PHP_INT_MAX);