forked from qmpaas/leadshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.php
34 lines (32 loc) · 900 Bytes
/
web.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
<?php
$db = file_exists(__DIR__ . '/db.php') ? require(__DIR__ . '/db.php') : [
'class' => 'yii\db\Connection',
'dsn' => '',
'username' => '',
'password' => '',
'charset' => '',
'tablePrefix' => '',
'attributes' => [
PDO::ATTR_STRINGIFY_FETCHES => false,
PDO::ATTR_EMULATE_PREPARES => false,
],
];
$params = require __DIR__ . '/params.php';
$aliases = require __DIR__ . '/aliases.php';
$config = [
'id' => 'basic',
'language' => 'zh-CN',
'aliases' => $aliases,
'basePath' => dirname(__DIR__),
'components' => [
'db' => $db,
'redis' => [
'class' => \yii\redis\Connection::class,
'hostname' => '127.0.0.1',
'port' => 6379,
'database' => 0,
],
],
'params' => $params,
];
return $config;