Skip to content

Commit cd561a0

Browse files
authored
allow updating the application instance on the database manager (#37068)
1 parent f27fa00 commit cd561a0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

DatabaseManager.php

+13
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,19 @@ public function setReconnector(callable $reconnector)
359359
$this->reconnector = $reconnector;
360360
}
361361

362+
/**
363+
* Set the application instance used by the manager.
364+
*
365+
* @param \Illuminate\Contracts\Foundation\Application $app
366+
* @return $this
367+
*/
368+
public function setApplication($app)
369+
{
370+
$this->app = $app;
371+
372+
return $this;
373+
}
374+
362375
/**
363376
* Dynamically pass methods to the default connection.
364377
*

0 commit comments

Comments
 (0)