-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbootstrap.php
35 lines (21 loc) · 875 Bytes
/
bootstrap.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
<?php
declare(strict_types=1);
// Turn up error reporting to the maximum.
error_reporting(E_ALL);
// Set the microtime of the request.
if (!defined('REQUEST_MICROTIME')) {
define('REQUEST_MICROTIME', microtime(true));
}
// Configure Xdebug.
ini_set('xdebug.var_display_max_depth', '999');
// Allow a Command to run forever.
set_time_limit(0);
// Application root path.
// All paths in the application must be relevant to this path.
define('APPLICATION_ROOT', __DIR__);
// In the case of a non-interactive shell (for example, when calling from a cronjob), Command::interact() is not
// executed by default. By forcing an interactive shell, Command::interact() is always executed, which is required
// to validate and set command line arguments.
putenv('SHELL_INTERACTIVE=true');
// For number formatting, set the default locale.
locale_set_default('en_US');