From 25e2dd8468191a0b87c3f0ea8a4e449b3bce20ec Mon Sep 17 00:00:00 2001 From: Jean-Yves <7360784+docjyJ@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:48:10 +0200 Subject: [PATCH] Auth readonly class Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com> --- php/src/Auth/AuthManager.php | 4 ++-- php/src/Auth/PasswordGenerator.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/php/src/Auth/AuthManager.php b/php/src/Auth/AuthManager.php index f3775146400..200942cbbf0 100644 --- a/php/src/Auth/AuthManager.php +++ b/php/src/Auth/AuthManager.php @@ -6,11 +6,11 @@ use AIO\Data\DataConst; use DateTime; -class AuthManager { +readonly class AuthManager { private const string SESSION_KEY = 'aio_authenticated'; public function __construct( - private readonly ConfigurationManager $configurationManager + private ConfigurationManager $configurationManager ) { } diff --git a/php/src/Auth/PasswordGenerator.php b/php/src/Auth/PasswordGenerator.php index 726a58709ee..57df7d43306 100644 --- a/php/src/Auth/PasswordGenerator.php +++ b/php/src/Auth/PasswordGenerator.php @@ -4,7 +4,7 @@ use Random\RandomException; -class PasswordGenerator { +readonly class PasswordGenerator { private const array WORDS = [ 'abacus',