mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
delete static demo when changing demo url
This commit is contained in:
parent
df83a46e20
commit
611e7c3415
5 changed files with 138 additions and 21 deletions
|
|
@ -93,7 +93,7 @@ class Container {
|
|||
$this->baseUrl,
|
||||
new HeaderParser(),
|
||||
new Parser(new RawParser($this->parserUrl)),
|
||||
new DemoStore($this->storeRoot, $this->storeUrl),
|
||||
$this->getDemoStore(),
|
||||
$this->getUserProvider(),
|
||||
$this->getDemoProvider(),
|
||||
new DemoSaver(
|
||||
|
|
@ -106,6 +106,10 @@ class Container {
|
|||
);
|
||||
}
|
||||
|
||||
public function getDemoStore(): DemoStore {
|
||||
return new DemoStore($this->storeRoot, $this->storeUrl);
|
||||
}
|
||||
|
||||
public function getUserProvider(): UserProvider {
|
||||
return new UserProvider($this->connection, $this->generator);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue