From c7fefb744644078a620c1c1c641656a49dc989d6 Mon Sep 17 00:00:00 2001 From: AL EMRAN Date: Thu, 24 Feb 2022 20:59:33 +0600 Subject: [PATCH] [9.x] Unset Connection Resolver extended callback (#41216) * Unset Connection Resolver extended callback * Removed isset() * Update DatabaseManager.php Co-authored-by: Taylor Otwell --- src/Illuminate/Database/DatabaseManager.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Illuminate/Database/DatabaseManager.php b/src/Illuminate/Database/DatabaseManager.php index cb823bfa3de3..726b83796586 100755 --- a/src/Illuminate/Database/DatabaseManager.php +++ b/src/Illuminate/Database/DatabaseManager.php @@ -396,6 +396,17 @@ public function extend($name, callable $resolver) $this->extensions[$name] = $resolver; } + /** + * Remove an extension connection resolver. + * + * @param string $name + * @return void + */ + public function forgetExtension($name) + { + unset($this->extensions[$name]); + } + /** * Return all of the created connections. *