-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php
executable file
·43 lines (40 loc) · 1018 Bytes
/
config.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
42
43
<?php
/**
* Skeleton application for SimpleMVC
*
* @link http://github.com/simplemvc/skeleton
* @copyright Copyright (c) Enrico Zimuel (https://www.zimuel.it)
* @license https://opensource.org/licenses/MIT MIT License
*/
declare(strict_types=1);
use App\Config\Route;
use Monolog\Logger;
use Psr\Container\ContainerInterface;
return [
'routing' => [
'routes' => Route::getRoutes(),
'cache' => 'data/cache/route.cache'
],
'database' => [
'pdo_dsn' => 'sqlite:data/db.sqlite',
],
'view' => [
'path' => 'src/View',
'folders' => [
'admin' => 'src/View/admin'
],
],
'logger' => [
'name' => 'app',
'path' => sprintf("data/log/%s.log", date("Y_m_d")),
'level' => Logger::DEBUG,
],
// Basic authentication
'authentication' => [
'username' => 'test',
'password' => '1234567890'
],
'bootstrap' => function(ContainerInterface $c) {
session_start();
}
];