Skip to content

Commit

Permalink
[9.x] Unset Connection Resolver extended callback (#41216)
Browse files Browse the repository at this point in the history
* Unset Connection Resolver extended callback

* Removed isset()

* Update DatabaseManager.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
emrancu and taylorotwell authored Feb 24, 2022
1 parent a2708ab commit c7fefb7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Database/DatabaseManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit c7fefb7

Please sign in to comment.