From 030ffbc354ddbd0456c552d976307313e93f60ba Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 19 Dec 2024 08:04:34 +0800 Subject: [PATCH 1/3] Release 7.50.1 Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-7.x.md | 8 ++++++++ src/Workbench/Workbench.php | 13 +++++++++++++ 2 files changed, 21 insertions(+) diff --git a/CHANGELOG-7.x.md b/CHANGELOG-7.x.md index 65b081ad..d8128300 100644 --- a/CHANGELOG-7.x.md +++ b/CHANGELOG-7.x.md @@ -2,6 +2,14 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench-core`. +## 7.50.1 + +Released: 2024-12-19 + +### Changes + +* Add `Orchestra\Testbench\Workbench\Workbench::flushCachedClassAndNamespaces()` to flush cached namespaces and classes during installation. + ## 7.50.0 Released: 2024-12-15 diff --git a/src/Workbench/Workbench.php b/src/Workbench/Workbench.php index 323d0a22..54eb0cbb 100644 --- a/src/Workbench/Workbench.php +++ b/src/Workbench/Workbench.php @@ -366,6 +366,19 @@ public static function detectNamespace(string $type, bool $force = false): ?stri public static function flush(): void { static::$cachedConfiguration = null; + + static::flushCachedClassAndNamespaces(); + } + + /** + * Flush the cached namespace configuration. + * + * @return void + * + * @codeCoverageIgnore + */ + public static function flushCachedClassAndNamespaces(): void + { static::$cachedUserModel = null; static::$cachedNamespaces = []; From 0047be7fa66d6752f03d1ad1fb5677b816d5c00b Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 19 Dec 2024 08:09:06 +0800 Subject: [PATCH 2/3] Release 8.31.1 Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-8.x.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG-8.x.md b/CHANGELOG-8.x.md index 432878e0..273c21fd 100644 --- a/CHANGELOG-8.x.md +++ b/CHANGELOG-8.x.md @@ -2,6 +2,14 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench-core`. +## 8.31.1 + +Released: 2024-12-19 + +### Changes + +* Add `Orchestra\Testbench\Workbench\Workbench::flushCachedClassAndNamespaces()` to flush cached namespaces and classes during installation. + ## 8.31.0 Released: 2024-12-15 From d4889bfe8e7dc95212dfd8b7f9a5e471fe397136 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 19 Dec 2024 08:12:23 +0800 Subject: [PATCH 3/3] Release 9.8.2 Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-9.x.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG-9.x.md b/CHANGELOG-9.x.md index 6fcfad78..e88e1d6b 100644 --- a/CHANGELOG-9.x.md +++ b/CHANGELOG-9.x.md @@ -2,6 +2,14 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench-core`. +## 9.8.2 + +Released: 2024-12-19 + +### Changes + +* Add `Orchestra\Testbench\Workbench\Workbench::flushCachedClassAndNamespaces()` to flush cached namespaces and classes during installation. + ## 9.8.1 Released: 2024-12-18