-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
21 lines (17 loc) · 692 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
use groupcash\php\algorithms\EccAlgorithm;
use groupcash\socialhours\app\Launcher;
use groupcash\socialhours\app\SendmailPostOffice;
use groupcash\socialhours\app\Session;
use rtens\domin\delivery\web\Url;
use watoki\karma\stores\StoringEventStore;
use watoki\stores\stores\FileStore;
require_once __DIR__ . '/vendor/autoload.php';
$context = (new \watoki\curir\WebEnvironment($_SERVER, [], []))->getContext();
(new Launcher(
new StoringEventStore(new FileStore(__DIR__ . '/user/data/events')),
new EccAlgorithm(),
new SendmailPostOffice('[email protected]'),
new Session(),
new Url($context->getScheme(), $context->getHost(), $context->getPort())
))->run();