From 69bf1697a5d4938db78f9abde6d31503f575caf5 Mon Sep 17 00:00:00 2001 From: Tom Wright Date: Tue, 12 Dec 2023 14:12:26 +0000 Subject: [PATCH 1/3] Added date as Carbon type Signed-off-by: Tom Wright --- CHANGELOG.md | 2 ++ src/Indoctrination/Extension/Carbon.php | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1b2fdb..d811859 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,4 @@ +* Added date as Carbon type + ## v0.1.0 (2023-12-08) * Built initial implementation diff --git a/src/Indoctrination/Extension/Carbon.php b/src/Indoctrination/Extension/Carbon.php index 17aa53e..a03d60d 100644 --- a/src/Indoctrination/Extension/Carbon.php +++ b/src/Indoctrination/Extension/Carbon.php @@ -28,6 +28,7 @@ public function loadGlobal(): void ); } + Type::overrideType('date', DateTimeType::class); Type::overrideType('datetime', DateTimeType::class); Type::overrideType('datetime_immutable', DateTimeImmutableType::class); } From a249760dffdc29854e2677dc6a9d8988ce22c0d8 Mon Sep 17 00:00:00 2001 From: Tom Wright Date: Tue, 12 Dec 2023 14:13:10 +0000 Subject: [PATCH 2/3] Pass Cipher payload as JWT wrapper argument Signed-off-by: Tom Wright --- CHANGELOG.md | 1 + src/Indoctrination/Context.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d811859..3aa0761 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ * Added date as Carbon type +* Pass Cipher payload as JWT wrapper argument ## v0.1.0 (2023-12-08) * Built initial implementation diff --git a/src/Indoctrination/Context.php b/src/Indoctrination/Context.php index a7b436a..ee8d09c 100644 --- a/src/Indoctrination/Context.php +++ b/src/Indoctrination/Context.php @@ -265,7 +265,7 @@ public function withJwt( SQL ); - return $callback($entityManager); + return $callback($entityManager, $payload); }); } From 48848c2c101ead4e98b6e929f80d8c50961b9f5c Mon Sep 17 00:00:00 2001 From: Tom Wright Date: Tue, 12 Dec 2023 14:13:46 +0000 Subject: [PATCH 3/3] Updated changelog Signed-off-by: Tom Wright --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3aa0761..fe3dc17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +## v0.1.1 (2023-12-12) * Added date as Carbon type * Pass Cipher payload as JWT wrapper argument