/
zerocore
executable file
·49 lines (42 loc) · 1.23 KB
/
zerocore
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
#!/usr/bin/env php
<?php
/*
|--------------------------------------------------------------------------
| Console Usage
|--------------------------------------------------------------------------
|
| It keeps track of whether processes are running through the console.
|
*/
define('CONSOLE_ENABLED', true);
/*
|--------------------------------------------------------------------------
| Project Name
|--------------------------------------------------------------------------
|
| The project to be processed is selected.
|
*/
if( ($argv[1] ?? NULL) === 'project-name' )
{
define('CONSOLE_PROJECT_NAME', $argv[2]);
}
/*
|--------------------------------------------------------------------------
| Require zeroneed.php
|--------------------------------------------------------------------------
|
| The file containing the system and basic structures is included.
|
*/
require_once __DIR__ . '/zeroneed.php';
/*
|--------------------------------------------------------------------------
| Run Console
|--------------------------------------------------------------------------
|
| It was created in order to use the existing frameworks of the ZN
| when you need to send commands to the PHP client via the console.
|
*/
new ZN\Console\Run($argv);