-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
37 lines (35 loc) · 1.56 KB
/
config.php
File metadata and controls
37 lines (35 loc) · 1.56 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
<?php
declare(strict_types=1);
return (new \ForwardFW\Config\Runner\HttpMiddlewareRunner())
->addService(
(new ForwardFW\Config\Service\DataHandler\Pdo())
->setDsn('mysql:host=db;port=3306;dbname=db')
->setUsername('db')
->setPassword('db')
->setTablePrefix('')
)
->addService(
(new \ForwardFW\Config\Service\Logger\ChromeLogger())
)
->addMiddleware(
new \ForwardFW\Config\Middleware\Logger\ChromeLogger()
)
->addMiddleware(
(new \ForwardFW\Config\Middleware\Application())
->setConfig(
(new ForwardFW\Config\Application())
->setName('SimpleFormDemo')
->setScreens([
'Input' => \ForwardDemo\Controller\Screen\Input::class,
'Textfield' => \ForwardDemo\Controller\Screen\Textfield::class,
'Database' => \ForwardDemo\Controller\Screen\Database::class,
'Cache' => \ForwardDemo\Controller\Screen\Cache::class,
])
->setIdent('SimpleFormDemo')
->setTemplaterConfig(
(new ForwardFW\Config\Templater\Smarty())
->setCompilePath(getcwd() . '/../cache/')
->setTemplatePath(getcwd() . '/../data/templates/smarty')
)
)
);