Skip to content

Commit f027f10

Browse files
committed
Remove init setters on pool from nested
1 parent 40f72f9 commit f027f10

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

src/Database/Adapter/Pool.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,6 @@ public function __construct(UtopiaPool $pool)
2727
if (!($resource instanceof Adapter)) {
2828
throw new DatabaseException('Pool must contain instances of ' . Adapter::class);
2929
}
30-
31-
// Run setters in case the pooled adapter has its own config
32-
$this->setDatabase($resource->getDatabase());
33-
$this->setNamespace($resource->getNamespace());
34-
$this->setSharedTables($resource->getSharedTables());
35-
$this->setTenant($resource->getTenant());
36-
37-
if ($resource->getTimeout() > 0) {
38-
$this->setTimeout($resource->getTimeout());
39-
}
40-
$this->resetDebug();
41-
foreach ($resource->getDebug() as $key => $value) {
42-
$this->setDebug($key, $value);
43-
}
44-
$this->resetMetadata();
45-
foreach ($resource->getMetadata() as $key => $value) {
46-
$this->setMetadata($key, $value);
47-
}
4830
});
4931
}
5032

0 commit comments

Comments
 (0)