-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
164 lines (149 loc) · 5.31 KB
/
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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?php
use eftec\bladeone\BladeOne;
use Services\Providers\RepositoryServiceProvider;
use Services\Providers\SecurityServiceProvider;
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
*/
'APP_NAME' => 'MiQu',
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
*/
'environment' => Miqu\Core\AppEnvironment::DEVELOPMENT,
/*
|--------------------------------------------------------------------------
| Database Configuration
|--------------------------------------------------------------------------
|
| These values will be used to initiate a connection with the database.
|
*/
'database' => [
'enabled' => true,
'driver' => 'sqlite',
'configurations' => [
'sqlite' => [
'database' => BASE_DIRECTORY . 'bin/database.sqlite'
],
'mysql' => [
'user' => '',
'password' => '',
'name' => '',
'host' => 'localhost',
'charset' => 'utf8',
],
]
],
/*
|--------------------------------------------------------------------------
| Cache Configuration
|--------------------------------------------------------------------------
|
| These values will be used to setup a cache manager
|
*/
'cache' => [
'enabled' => true, // enable caching
'driver' => 'files', // the caching method. check: https://github.com/PHPSocialNetwork/phpfastcache/blob/master/docs/DRIVERS.md
'path' => '/bin/cache/',
],
/*
|--------------------------------------------------------------------------
| Storage Configuration
|--------------------------------------------------------------------------
|
| These values will be used to setup the Storage class
|
*/
'storage' => [
'folder' => '/storage/', // base folder for the storage.
'auto_create' => true, // auto create files and folders if it does not exist.
'permissions' => 0777, // default file and folder permissions.
],
/*
|--------------------------------------------------------------------------
| Logging Configuration
|--------------------------------------------------------------------------
|
| These values will be used to setup a Logging Manager
|
*/
'logging' => [
'enabled' => true, // enable logging or not
'path' => '/bin/logs/file.log', // path for the log file
'time_format' => 'd.m.Y - h:i:s A',
],
/*
|--------------------------------------------------------------------------
| Blade Configuration
|--------------------------------------------------------------------------
|
| These values will be used to setup the Blade Engine
|
*/
'blade' => [
'views_path' => 'Views', // base path for the views directory
'bin_path' => 'bin/blade', // base path for the compiled versions of blade view will live in
'mode' => BladeOne::MODE_DEBUG // blade mode
],
/*
|--------------------------------------------------------------------------
| Mailing Configuration
|--------------------------------------------------------------------------
|
| These values will be used to setup the Mailer Engine
|
*/
'mailing' => [
'is_smtp' => true, // if false, the engine will use the default PHP mail function.
'smtp' => [
'host' => '',
'user' => '',
'password' => '',
'port' => 465
]
],
/*
|--------------------------------------------------------------------------
| Localization Configuration
|--------------------------------------------------------------------------
|
| These values will be used to setup the LocalizationManager instance
|
*/
'localization' => [
'enabled' => true, // if enabled is set to false. the translation key will always be returned when using __() function
'default_language' => 'en', // default language to use
'compile_path' => 'bin/translations', // folder for the compiled languages will be stored
'languages_path' => 'Languages' // the folder that contains languages folder
],
/*
|--------------------------------------------------------------------------
| Background Tasks
|--------------------------------------------------------------------------
|
| An array that contains all the tasks and their frequencies. You need to set it up
| by using >> php commando install:tasks
|
*/
'tasks' => [
//TaskClass::class => '@hourly'
],
/*
|--------------------------------------------------------------------------
| Service Providers
|--------------------------------------------------------------------------
|
| An array that contains all the Services providers that will be invoked when the app starts up
|
*/
'providers' => [
RepositoryServiceProvider::class,
SecurityServiceProvider::class
]
];