-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
41 lines (36 loc) · 1.01 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Object MVC Example app - Personal Notes
*
* @author Alexandr Gorlov <a.gorlov@gmail.com>
*/
require_once './vendor/autoload.php';
use ExampleApp\ActAttachRemoved;
use ExampleApp\ActLogin;
use ExampleApp\ActLogout;
use ExampleApp\ActNote;
use ExampleApp\ActNoteRemoved;
use ExampleApp\ActNotes;
use ExampleApp\ActOwnerAccess;
use ExampleApp\ActPastedImage;
use Lipid\App\ApplicationStd;
use Lipid\Response\RespStd;
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
setlocale(LC_ALL,'C.UTF-8');
(new ApplicationStd(
[
'/' => new ActNotes(),
'/login' => new ActLogin(),
'/logout' => new ActLogout(),
'/note' => new ActNote(),
'/remove' => new ActOwnerAccess(new ActNoteRemoved()),
'/paste-image' => new ActOwnerAccess(new ActPastedImage(
__DIR__ . '/public/files',
'/public/files'
)),
'/remove-attach' => new ActOwnerAccess(new ActAttachRemoved()),
],
new RespStd()
))->start();