From 909f7abaa4595323da61413e2ab5bba1c151b087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Tue, 18 Aug 2026 12:03:22 +0200 Subject: [PATCH] feat(shared): add security interfaces, user details contracts and UUID helper --- src/Shared/DDD/Exception/NotFoundException.php | 9 +++++++++ src/Shared/DDD/Exception/SecurityException.php | 9 +++++++++ src/Shared/DDD/Security/UserDetails.php | 16 ++++++++++++++++ src/Shared/DDD/Security/UserDetailsProvider.php | 10 ++++++++++ src/Shared/DDD/Security/UserIdentifier.php | 12 ++++++++++++ src/Shared/DDD/Security/UserType.php | 12 ++++++++++++ .../Helpers/Exceptions/InvalidUuidException.php | 13 +++++++++++++ src/Shared/Helpers/UuidHelper.php | 9 +++++++++ 8 files changed, 90 insertions(+) create mode 100644 src/Shared/DDD/Exception/NotFoundException.php create mode 100644 src/Shared/DDD/Exception/SecurityException.php create mode 100644 src/Shared/DDD/Security/UserDetails.php create mode 100644 src/Shared/DDD/Security/UserDetailsProvider.php create mode 100644 src/Shared/DDD/Security/UserIdentifier.php create mode 100644 src/Shared/DDD/Security/UserType.php create mode 100644 src/Shared/Helpers/Exceptions/InvalidUuidException.php diff --git a/src/Shared/DDD/Exception/NotFoundException.php b/src/Shared/DDD/Exception/NotFoundException.php new file mode 100644 index 0000000..2420ad0 --- /dev/null +++ b/src/Shared/DDD/Exception/NotFoundException.php @@ -0,0 +1,9 @@ +toString())) { + throw InvalidUuidException::forValue($uuid->toString()); + } + } }