2019-08-18 16:52:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
2019-09-16 16:09:38 +00:00
|
|
|
|
|
|
|
|
2019-08-18 16:52:23 +00:00
|
|
|
/**
|
|
|
|
* Application configuration
|
|
|
|
*
|
|
|
|
* PHP version 7.0
|
|
|
|
*/
|
|
|
|
class Config
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Database host
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
const DB_HOST = '118.24.238.198';
|
|
|
|
/**
|
|
|
|
* Database name
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
const DB_NAME = 'background';
|
2019-09-16 16:09:38 +00:00
|
|
|
const ROUTE_PREFIX_DEV = "/api/public/";
|
2019-08-31 15:43:37 +00:00
|
|
|
const ROUTE_PREFIX = "/wapi/";
|
2019-08-18 16:52:23 +00:00
|
|
|
/**
|
|
|
|
* Database user
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
const DB_USER = 'caiyu';
|
|
|
|
/**
|
|
|
|
* Database password
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
const DB_PASSWORD = '123456';
|
|
|
|
/**
|
|
|
|
* Show or hide error messages on screen
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
const SHOW_ERRORS = true;
|
2019-10-01 13:40:21 +00:00
|
|
|
static public $DEBUG = false;
|
2019-08-18 16:52:23 +00:00
|
|
|
}
|
2019-09-16 16:09:38 +00:00
|
|
|
|