Skip to content

Commit 0a4d6f3

Browse files
committed
Add authorization setter in Pool adapter initialization
1 parent 4088c10 commit 0a4d6f3

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/Database/Adapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ public function setAuthorization(Authorization $authorization): self
6565
return $this;
6666
}
6767

68+
public function getAuthorization(): Authorization
69+
{
70+
return $this->authorization;
71+
}
6872
/**
6973
* @param string $key
7074
* @param mixed $value

src/Database/Adapter/Pool.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function __construct(UtopiaPool $pool)
3030
}
3131

3232
// Run setters in case the pooled adapter has its own config
33+
$this->setAuthorization($resource->getAuthorization());
3334
$this->setDatabase($resource->getDatabase());
3435
$this->setNamespace($resource->getNamespace());
3536
$this->setSharedTables($resource->getSharedTables());

0 commit comments

Comments
 (0)