1
0
Fork 0
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:
Robin Appelman 2017-08-08 13:00:19 +02:00
commit 611e7c3415
5 changed files with 138 additions and 21 deletions

View file

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