File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ public function setAuthorization(Authorization $authorization): self
6666 }
6767
6868 public function getAuthorization (): Authorization
69- {
70- return $ this ->authorization ;
71- }
69+ {
70+ return $ this ->authorization ;
71+ }
7272 /**
7373 * @param string $key
7474 * @param mixed $value
Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ public function __construct(UtopiaPool $pool)
3030 }
3131
3232 // Run setters in case the pooled adapter has its own config
33- $ this ->setAuthorization ($ resource ->getAuthorization ());
33+ try {
34+ $ this ->setAuthorization ($ resource ->getAuthorization ());
35+ } catch (\Error $ e ) {
36+ // Authorization not initialized yet, so skip it.
37+ }
3438 $ this ->setDatabase ($ resource ->getDatabase ());
3539 $ this ->setNamespace ($ resource ->getNamespace ());
3640 $ this ->setSharedTables ($ resource ->getSharedTables ());
You can’t perform that action at this time.
0 commit comments