-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
39 lines (32 loc) · 1.1 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
<?php
class Config extends \Simflex\Core\Config
{
public static $db_type = 'mysql';
public static $db_host; // Init from env. May put values statically
public static $db_user;
public static $db_pass;
public static $db_name;
public static $component_default = '\App\Extensions\Content\Content';
public static $theme = 'default';
public static $subdomainOneSession = false;
public static $devMode = false;
/**
* @see /core/sflog.class.php
*/
public static $logLevel = 'debug';
public static $logPath = '/var/log';
/**
* @example if (extension_loaded('pdo')) static::$mysqlErrorMode = PDO::ERRMODE_EXCEPTION;
* @var int
*/
public static $mysqlErrorMode = 0;
public static function load()
{
static::$db_host = env('DB_HOST', '127.0.0.1');
static::$db_user = env('DB_USER', 'simflex');
static::$db_pass = env('DB_PASS', 'simflex');
static::$db_name = env('DB_NAME', 'simflex');
static::$devMode = env("DEVELOPER", false);
}
public static $routesFile = SF_ROOT_PATH . '/routes.php';
}