-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.php
56 lines (46 loc) · 1.75 KB
/
setup.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
49
50
51
52
53
54
55
56
<?php
/**
* This file sets up the includes and requirements for the core system.
*
* PHP version 7.
*
* Created: 2019-03-27, 12:31
*
* @author Jeff Behnke <[email protected]>
* @copyright (c) 2009 - 2019 ValidWebs.com
* @package cli-builder - setup.php
* @license https://raw.githubusercontent.com/topdown/cli-builder/master/LICENSE
* @version 0.0.1
*
*/
$start = microtime();
$root_path = realpath( dirname( __DIR__ ) );
ini_set( 'xdebug.var_display_max_depth', 10 );
ini_set( 'xdebug.var_display_max_children', 256 );
ini_set( 'xdebug.var_display_max_data', 1024 );
// Higher settings needed locally for running big development tasks
ini_set( 'memory_limit', '1536M' ); // 1.5 GB
ini_set( 'max_execution_time', 18000 ); // 5 hours
// PHP settings
ini_set( "log_errors", 1 );
ini_set( "error_log", $root_path . '/logs/error.log' );
date_default_timezone_set( 'America/Chicago' );
// Gives us a constant for the root directory for the CLI Builder.
define( 'CLIB_PATH', __DIR__ );
// Helpers - Mostly for visual decorating.
include_once "src/helpers/Console_Table.php";
include_once "src/helpers/cli_table.php";
include_once "src/helpers/cli_colors.php";
// Interfaces and Cammand package to encapsulate, invocation and decoupling of future commands.
// These are required.
include_once "src/command/command_interface.php";
include_once "src/command/undoable_command_interface.php";
include_once "src/command/receiver.php";
include_once "src/command/invoker.php";
include_once "src/command/command.php";
// The instance of the CLI.
// Required to use the built in simplicity, IE output, arg handling, progress bar, etc..
include_once "src/cli.php";
include_once 'src/cli_base.php';
include_once 'src/command/builder.php';
// End setup.php