forked from hiro0218/hakoniwa
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig.php
48 lines (41 loc) · 1.28 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
40
41
42
43
44
45
46
47
48
<?php
declare(strict_types=1);
/**
* Re:箱庭諸島
* @copyright 2017 Re:箱庭諸島
*/
define("VERSION", "0.0.1");
defined("WINDOWS") || define("WINDOWS", defined("PHP_WINDOWS_VERSION_MAJOR"));
/**
* Debug mode:
* If the server running for test as cli-server, "DEBUG" is always true.
* cf. "Router.php".
*/
defined("DEBUG") || define("DEBUG", false);
/**
* Global settings
*/
date_default_timezone_set("Asia/Tokyo");
ini_set("default_charset", "UTF-8");
ini_set("mbstring.language", "Japanese");
$ISLAND_TURN;
define("LOCK_RETRY_COUNT", 10);
define("READ_LINE", 1024);
define("DS", DIRECTORY_SEPARATOR);
// [Common directories]
define("ROOT", __DIR__.DS);
define("APP", realpath(__DIR__.DS."app".DS).DS);
define("CONTROLLER", realpath(APP.DS."controller".DS).DS);
define("HELPER", realpath(APP.DS."helper".DS).DS);
define("MODEL", realpath(APP.DS."model".DS).DS);
define("PRESENTER", realpath(APP.DS."presenter".DS).DS);
define("VIEWS", realpath(APP.DS."views".DS).DS);
// LaunchTest
require_once __DIR__."/LaunchTest.php";
// Composer/Autoloader
if (mb_substr(__DIR__, 0, mb_strlen(sys_get_temp_dir())) !== sys_get_temp_dir() && is_file("vendor/autoload.php")) {
require_once "vendor/autoload.php";
}
// Common requires.
use \Hakoniwa\Helper\Util;
// require_once HELPER."Enum.php";