Auth readonly class

Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com>
This commit is contained in:
Jean-Yves 2024-09-24 21:48:10 +02:00
parent 5187ea6c35
commit 1e4f32f3cb
No known key found for this signature in database
GPG key ID: 644C8B9C4CABAEF7
2 changed files with 3 additions and 3 deletions

View file

@ -6,11 +6,11 @@ use AIO\Data\ConfigurationManager;
use AIO\Data\DataConst; use AIO\Data\DataConst;
use DateTime; use DateTime;
class AuthManager { readonly class AuthManager {
private const string SESSION_KEY = 'aio_authenticated'; private const string SESSION_KEY = 'aio_authenticated';
public function __construct( public function __construct(
private readonly ConfigurationManager $configurationManager private ConfigurationManager $configurationManager
) { ) {
} }

View file

@ -4,7 +4,7 @@ namespace AIO\Auth;
use Random\RandomException; use Random\RandomException;
class PasswordGenerator { readonly class PasswordGenerator {
private const array WORDS = [ private const array WORDS = [
'abacus', 'abacus',