-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
47 lines (45 loc) · 1.48 KB
/
settings.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
<?php
if (file_exists(__DIR__ . '/settings.local.php')){
include_once __DIR__ . '/settings.local.php';
}
define('website_title', 'PHP Website Bootstrap Demo');
function GetComponentsSettings()
{
return [
'default'=>[
'IDatabase'=>[
'RealizeAs'=>'MySqlDB',
'Config'=>[
'db_host' => 'localhost:3306', //MySQL55
'db_username' => 'root',
'db_password' => 'root',
'db_name' => 'PhpWebsiteBootstrapDemo',
'db_prefix' => ''
]
],
'IAccountManager'=>[
'RealizeAs'=>'AccountManager'
],
'IOAuth2'=>[
'RealizeAs'=>'OAuth2',
'Config'=>[
'Providers'=>[
'GoogleOAuthProvider'=>[
'ClientId'=>'',
'ClientSecret'=>'',
'ApiKey'=>''
]
]
]
],
'IPageRenderer'=>[
'RealizeAs'=>'PageRenderer',
'Config'=>[
'theme'=>'default',
'default_template'=>'main.php'
]
]
]
];
}
?>