配置文件

deploy
a74589669 2019-08-19 00:52:23 +08:00
parent 0519fbfe9f
commit 0fdeda05d1
2 changed files with 38 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,5 +1,4 @@
.idea/
vendor/symfony/
vendor/twig/
App/Config.php
vendor/

38
App/Config.php Normal file
View File

@ -0,0 +1,38 @@
<?php
namespace App;
/**
* 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';
const ROUTE_PREFIX = "/api/public/";
/**
* 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;
}