Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
update portal with portal_number
Browse files Browse the repository at this point in the history
portal_number moved to config. and passed through to dbconfig
storage was fine tuned to return portal_number in resultset for portal use (and future use as needed)
admin portal was adjusted to show portal number in (info, users)

connections, Stats and log works for current portal only. need to consider global view
  • Loading branch information
samermassoud committed Aug 11, 2022
1 parent e389023 commit aa40e4f
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 34 deletions.
6 changes: 6 additions & 0 deletions src/Cfg/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ public function dbConfig(string $baseDir): DbConfig
array_merge(
[
'baseDir' => $baseDir,
'portalNumber' => $this->portalNumber(),
],
$this->s('Db')->toArray()
)
Expand Down Expand Up @@ -221,4 +222,9 @@ public static function fromFile(string $configFile): self

return new self(require $configFile);
}

public function portalNumber(): int
{
return $this->requireInt('portalNumber', 0);
}
}
2 changes: 1 addition & 1 deletion src/Cfg/DbConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ public function dbPass(): ?string

public function portalNumber(): int
{
return $this->requireInt('portalNumber', 0);
return $this->requireInt('portalNumber');
}
}
Loading

0 comments on commit aa40e4f

Please sign in to comment.