1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

add option to limit uploads to a single key

This commit is contained in:
Robin Appelman 2018-04-24 23:24:47 +02:00
commit 96a9803e30
4 changed files with 68 additions and 12 deletions

View file

@ -34,6 +34,7 @@ class Container {
private $editKey;
private $request;
private $response;
private $uploadKey;
public function __construct(
Request $request,
@ -45,7 +46,8 @@ class Container {
string $storeRoot,
string $storeUrl,
string $apiRoot,
string $editKey
string $editKey,
string $uploadKey
) {
$this->request = $request;
$this->response = $response;
@ -57,6 +59,7 @@ class Container {
$this->storeUrl = $storeUrl;
$this->apiRoot = $apiRoot;
$this->editKey = $editKey;
$this->uploadKey = $uploadKey;
}
public function getAuthProvider(): AuthProvider {
@ -102,7 +105,8 @@ class Container {
$this->getChatProvider(),
$this->getUserProvider(),
$this->getDemoProvider()
)
),
$this->getUploadKey()
);
}
@ -149,4 +153,8 @@ class Container {
public function getResponse(): Response {
return $this->response;
}
public function getUploadKey(): string {
return $this->uploadKey;
}
}