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
|
|
@ -25,6 +25,7 @@ $storeRoot = getenv('DEMO_ROOT') ?: '';
|
|||
$storeHost = getenv('DEMO_HOST') ?: '';
|
||||
$parserUrl = getenv('PARSER_URL') ?: '';
|
||||
$appRoot = getenv('APP_ROOT') ?: '';
|
||||
$editKey = getenv('EDIT_SECRET') ?: '';
|
||||
|
||||
$factory = new \RandomLib\Factory;
|
||||
$generator = $factory->getMediumStrengthGenerator();
|
||||
|
|
@ -36,7 +37,8 @@ $container = new Container(
|
|||
$parserUrl,
|
||||
$storeRoot,
|
||||
$storeHost,
|
||||
$appRoot
|
||||
$appRoot,
|
||||
$editKey
|
||||
);
|
||||
|
||||
return $container;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue