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

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