mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-04 02:14:06 +02:00
add api to set demo url
This commit is contained in:
parent
b588c8ce7e
commit
64b0aff075
6 changed files with 87 additions and 4 deletions
|
|
@ -27,6 +27,7 @@ class Container {
|
|||
private $storeRoot;
|
||||
private $storeUrl;
|
||||
private $apiRoot;
|
||||
private $editKey;
|
||||
|
||||
public function __construct(
|
||||
Connection $connection,
|
||||
|
|
@ -35,7 +36,8 @@ class Container {
|
|||
string $parserUrl,
|
||||
string $storeRoot,
|
||||
string $storeUrl,
|
||||
string $apiRoot
|
||||
string $apiRoot,
|
||||
string $editKey
|
||||
) {
|
||||
$this->connection = $connection;
|
||||
$this->generator = $generator;
|
||||
|
|
@ -44,6 +46,7 @@ class Container {
|
|||
$this->storeRoot = $storeRoot;
|
||||
$this->storeUrl = $storeUrl;
|
||||
$this->apiRoot = $apiRoot;
|
||||
$this->editKey = $editKey;
|
||||
}
|
||||
|
||||
public function getAuthProvider(): AuthProvider {
|
||||
|
|
@ -116,4 +119,8 @@ class Container {
|
|||
public function getApiRoot(): string {
|
||||
return $this->apiRoot;
|
||||
}
|
||||
|
||||
public function getEditKey(): string {
|
||||
return $this->editKey;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue