|
1 | 1 | <?php |
2 | 2 |
|
3 | | -//-------------------------------------------------------------------- |
4 | | -// App Namespace |
5 | | -//-------------------------------------------------------------------- |
6 | | -// This defines the default Namespace that is used throughout |
7 | | -// CodeIgniter to refer to the Application directory. Change |
8 | | -// this constant to change the namespace that all application |
9 | | -// classes should use. |
10 | | -// |
11 | | -// NOTE: changing this will require manually modifying the |
12 | | -// existing namespaces of App\* namespaced-classes. |
13 | | -// |
| 3 | +/* |
| 4 | + | -------------------------------------------------------------------- |
| 5 | + | App Namespace |
| 6 | + | -------------------------------------------------------------------- |
| 7 | + | |
| 8 | + | This defines the default Namespace that is used throughout |
| 9 | + | CodeIgniter to refer to the Application directory. Change |
| 10 | + | this constant to change the namespace that all application |
| 11 | + | classes should use. |
| 12 | + | |
| 13 | + | NOTE: changing this will require manually modifying the |
| 14 | + | existing namespaces of App\* namespaced-classes. |
| 15 | + */ |
14 | 16 | defined('APP_NAMESPACE') || define('APP_NAMESPACE', 'App'); |
15 | 17 |
|
16 | 18 | /* |
17 | | -|-------------------------------------------------------------------------- |
18 | | -| Composer Path |
19 | | -|-------------------------------------------------------------------------- |
20 | | -| |
21 | | -| The path that Composer's autoload file is expected to live. By default, |
22 | | -| the vendor folder is in the Root directory, but you can customize that here. |
23 | | -*/ |
| 19 | + | -------------------------------------------------------------------------- |
| 20 | + | Composer Path |
| 21 | + | -------------------------------------------------------------------------- |
| 22 | + | |
| 23 | + | The path that Composer's autoload file is expected to live. By default, |
| 24 | + | the vendor folder is in the Root directory, but you can customize that here. |
| 25 | + */ |
24 | 26 | defined('COMPOSER_PATH') || define('COMPOSER_PATH', ROOTPATH . 'vendor/autoload.php'); |
25 | 27 |
|
26 | 28 | /* |
27 | | -|-------------------------------------------------------------------------- |
28 | | -| Timing Constants |
29 | | -|-------------------------------------------------------------------------- |
30 | | -| |
31 | | -| Provide simple ways to work with the myriad of PHP functions that |
32 | | -| require information to be in seconds. |
33 | | -*/ |
| 29 | + |-------------------------------------------------------------------------- |
| 30 | + | Timing Constants |
| 31 | + |-------------------------------------------------------------------------- |
| 32 | + | |
| 33 | + | Provide simple ways to work with the myriad of PHP functions that |
| 34 | + | require information to be in seconds. |
| 35 | + */ |
34 | 36 | defined('SECOND') || define('SECOND', 1); |
35 | 37 | defined('MINUTE') || define('MINUTE', 60); |
36 | 38 | defined('HOUR') || define('HOUR', 3600); |
|
41 | 43 | defined('DECADE') || define('DECADE', 315_360_000); |
42 | 44 |
|
43 | 45 | /* |
44 | | -|-------------------------------------------------------------------------- |
45 | | -| Exit Status Codes |
46 | | -|-------------------------------------------------------------------------- |
47 | | -| |
48 | | -| Used to indicate the conditions under which the script is exit()ing. |
49 | | -| While there is no universal standard for error codes, there are some |
50 | | -| broad conventions. Three such conventions are mentioned below, for |
51 | | -| those who wish to make use of them. The CodeIgniter defaults were |
52 | | -| chosen for the least overlap with these conventions, while still |
53 | | -| leaving room for others to be defined in future versions and user |
54 | | -| applications. |
55 | | -| |
56 | | -| The three main conventions used for determining exit status codes |
57 | | -| are as follows: |
58 | | -| |
59 | | -| Standard C/C++ Library (stdlibc): |
60 | | -| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html |
61 | | -| (This link also contains other GNU-specific conventions) |
62 | | -| BSD sysexits.h: |
63 | | -| https://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits |
64 | | -| Bash scripting: |
65 | | -| https://tldp.org/LDP/abs/html/exitcodes.html |
66 | | -| |
67 | | -*/ |
| 46 | + | -------------------------------------------------------------------------- |
| 47 | + | Exit Status Codes |
| 48 | + | -------------------------------------------------------------------------- |
| 49 | + | |
| 50 | + | Used to indicate the conditions under which the script is exit()ing. |
| 51 | + | While there is no universal standard for error codes, there are some |
| 52 | + | broad conventions. Three such conventions are mentioned below, for |
| 53 | + | those who wish to make use of them. The CodeIgniter defaults were |
| 54 | + | chosen for the least overlap with these conventions, while still |
| 55 | + | leaving room for others to be defined in future versions and user |
| 56 | + | applications. |
| 57 | + | |
| 58 | + | The three main conventions used for determining exit status codes |
| 59 | + | are as follows: |
| 60 | + | |
| 61 | + | Standard C/C++ Library (stdlibc): |
| 62 | + | http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html |
| 63 | + | (This link also contains other GNU-specific conventions) |
| 64 | + | BSD sysexits.h: |
| 65 | + | http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits |
| 66 | + | Bash scripting: |
| 67 | + | http://tldp.org/LDP/abs/html/exitcodes.html |
| 68 | + | |
| 69 | + */ |
68 | 70 | defined('EXIT_SUCCESS') || define('EXIT_SUCCESS', 0); // no errors |
69 | 71 | defined('EXIT_ERROR') || define('EXIT_ERROR', 1); // generic error |
70 | 72 | defined('EXIT_CONFIG') || define('EXIT_CONFIG', 3); // configuration error |
|
0 commit comments