-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathExample.Config.php
More file actions
87 lines (87 loc) · 2.91 KB
/
Copy pathExample.Config.php
File metadata and controls
87 lines (87 loc) · 2.91 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/* ------------------------------------------------------ *\
| CONFIG |
\* ------------------------------------------------------ */
/**
* Use @const WEB_ROOT to get Public / Web Directory
*/
return [
'directory' => [
'storage' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Storage',
'module' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Modules',
'extension' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Extensions',
// load from example
// 'extension' => __DIR__ . DIRECTORY_SEPARATOR . '_example/Extensions',
// 'module' => __DIR__ . DIRECTORY_SEPARATOR . '_example/Modules',
],
'database' => [
'host' => 'localhost',
'user' => '',
'password' => '',
'name' => '',
'port' => 3306,
'driver' => 'mysql',
'charset' => 'utf8',
'collate' => 'utf8_unicode_ci',
// database prefix
'prefix' => 'db_',
],
'environment' => [
// beware debug log will be make your disk full, use this for dev only
'debug' => true,
// set Notice for log
'log' => LOG_MODE_NOTICE,
// show error verbose
'error' => true,
// logs.log if there / or \ will be convert to underscore
// log placed under directory[storage]/logs (Default 'Storage/logs')
// and set null or empty value to make log automatically set by log level
'log_name' => null,
],
'cache' => [
// driver name
'driver' => 'auto',
/**
* @see \phpFastCache\CacheManager::getDefaultConfig()
*/
'config' => [
'securityKey' => 'auto',
'ignoreSymfonyNotice' => false,
'defaultTtl' => 900,
'htaccess' => true,
'default_chmod' => 0777,
'path' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Storage' . DIRECTORY_SEPARATOR . 'Cache',
'fallback' => false,
'limited_memory_each_object' => 4096,
'compress_data' => false,
]
],
'session' => [
'name' => null,
'save_path' => null,
// values of cookie params
'path' => '/',
'lifetime' => 0,
'domain' => null,
'httponly' => null,
'secure' => null,
],
// auto loading on separate loaded init
// files that loaded has variable $this that instanceof Slim\App
'autoload' => [
// load Container / Register Additional Container
'container' => [
__DIR__ . '/Example.Container.php'
],
// load middle ware end of middle ware init
'middleware' => [
// example Route
__DIR__ . '/Example.Middleware.php'
],
// load on routes
'routes' => [
// example Route
__DIR__ . '/Example.Routes.php'
],
],
];