Skip to content

Commit

Permalink
Add unset event dispatcher for connections
Browse files Browse the repository at this point in the history
  • Loading branch information
fntneves committed Apr 7, 2018
1 parent efe4f1a commit 8b1df9b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,16 @@ public function setEventDispatcher(Dispatcher $events)
$this->events = $events;
}

/**
* Unset the event dispatcher for this connection.
*
* @return void
*/
public function unsetEventDispatcher()
{
$this->events = null;
}

/**
* Determine if the connection in a "dry run".
*
Expand Down

0 comments on commit 8b1df9b

Please sign in to comment.