Skip to content

Commit

Permalink
allow updating the application instance on the database manager (#37068
Browse files Browse the repository at this point in the history
)
  • Loading branch information
themsaid committed Apr 21, 2021
1 parent fbf25e1 commit 35a9d36
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Illuminate/Database/DatabaseManager.php
Expand Up @@ -359,6 +359,19 @@ public function setReconnector(callable $reconnector)
$this->reconnector = $reconnector;
}

/**
* Set the application instance used by the manager.
*
* @param \Illuminate\Contracts\Foundation\Application $app
* @return $this
*/
public function setApplication($app)
{
$this->app = $app;

return $this;
}

/**
* Dynamically pass methods to the default connection.
*
Expand Down

0 comments on commit 35a9d36

Please sign in to comment.