We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d7b6b0 commit 1e633cdCopy full SHA for 1e633cd
src/DatabaseManager.php
@@ -18,6 +18,22 @@ class DatabaseManager extends BaseDatabaseManager
18
*/
19
protected static array $pools = [];
20
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ public function __construct(...$args)
25
+ {
26
+ parent::__construct(...$args);
27
+ $this->reconnector = function ($connection) {
28
+ $name = $connection->getNameWithReadWriteType();
29
+ [$database, $type] = $this->parseConnectionName($name);
30
+ $fresh = $this->configure(
31
+ $this->makeConnection($database), $type
32
+ );
33
+ $connection->setPdo($fresh->getRawPdo());
34
+ };
35
+ }
36
+
37
/**
38
* Get connection
39
*
0 commit comments