-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
53 lines (51 loc) · 1.93 KB
/
config.php
File metadata and controls
53 lines (51 loc) · 1.93 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
<?php
declare(strict_types=1);
return (new \ForwardFW\Config\Runner\HttpMiddlewareRunner())
/**
->addService(
(new \ForwardFW\Config\Service\DataHandler\Mdb2())
->setDsn('mysqli://john:doe@localhost/forwardfw')
->setTablePrefix('')
)*/
->addService(
(new \ForwardFW\Config\Service\Logger\Manager())
->addLoggerService(new \ForwardFW\Config\Service\Logger\ChromeLogger())
->addLoggerService(
(new \ForwardFW\Config\Service\Logger\ClockworkLogger())
->enable()
)
)
->addService(
(new \ForwardFW\Config\Auth\Service\BasicAuthService())
->setUsername('ao')
->setPassword('ao')
)
->addMiddleware(
new \ForwardFW\Config\Middleware\Logger\ChromeLogger()
)
->addMiddleware(
(new \ForwardFW\Config\Middleware\Logger\ClockworkLogger())
)
->addMiddleware(
new \ForwardFW\Config\Middleware\SimpleRouter()
)
->addMiddleware(
(new \ForwardFW\Config\Auth\AuthenticationMiddleware())
)
->addMiddleware(
(new \ForwardFW\Config\Middleware\Application())
->setConfig(
(new ForwardFW\Config\Application())
->setName('ShortDemo')
->setScreens(
[
'Hello' => \ForwardFW\Controller\Screen::class
]
)
->setTemplaterConfig(
(new ForwardFW\Config\Templater\Smarty())
->setCompilePath(getcwd() . '/../cache/')
->setTemplatePath(getcwd() . '/../data/templates/smarty')
)
)
);