forked from rsanchez/eecli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.eecli.php
103 lines (93 loc) · 2.2 KB
/
sample.eecli.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
/**
* Sample eecli Configuration file
*
* Rename this file to .eecli.php in your site root.
*/
// Quit if this is not being requested via the CLI
if (php_sapi_name() !== 'cli') {
exit;
}
return array(
/**
* System path
*
* Specify the path to your EE system folder
* If you leave this blank, it will assume your
* folder is <current directory>/system
*/
'system_path' => __DIR__.'/system',
/**
* Spoof $_SERVER variables
*
* This array will be merged with $_SERVER.
*
* When using php from the command line,
* things like HTTP_HOST and DOCUMENT_ROOT
* do not get set.
*
* Useful if you check for $_SERVER items
* at runtime, like changing DB
* credentials based on HTTP_HOST
* in your config.php.
*
* You can also set these at the command line:
*
* HTTP_HOST="foo.dev" eecli update:addons
*/
'server' => array(
'HTTP_HOST' => 'localhost',
'DOCUMENT_ROOT' => __DIR__,
'REQUEST_URI' => '/',
'REMOTE_ADDR' => '127.0.0.1',
'HTTP_USER_AGENT' => 'eecli',
),
/**
* Assign variables to config
*/
'assign_to_config' => array(
#'foo' => 'bar',
),
/**
* Custom commands
*
* An array of Command class names of
* custom commands.
*/
'commands' => array(
#'\\Your\\Custom\\Command',
),
/**
* Custom command directories
*
* An array of directories, keyed by a namespace prefix,
* which will be crawled for Command classes.
*/
'commandDirs' => array(
/*
'\\Your\\Namespace' => '/path/to/commands',
*/
),
/**
* Event Callbacks
*
* An array of callback functions to be
* invoked on the specified event.
*/
'callbacks' => array(
/*
'bootstrap.before' => function ($app) {
},
'bootstrap.after' => function ($app) {
},
*/
),
/**
* The default addon author name used when generating addons.
*/
'addon_author_name' => '',
/**
* The default addon author URL used when generating addons.
*/
'addon_author_url' => '',
);