1
0
Fork 0
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:
Robin Appelman 2017-07-15 22:18:45 +02:00
commit 64b0aff075
6 changed files with 87 additions and 4 deletions

View file

@ -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;
}
}