forked from a07061625/swooleyaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper_ide.php
43 lines (39 loc) · 1.32 KB
/
helper_ide.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
<?php
require_once __DIR__ . '/helper_load.php';
class IDETool {
use \Traits\SimpleTrait;
public static function generator(){
$option = strtolower(\Tool\Tool::getClientOption(1, true, ''));
switch ($option) {
case 'rdkafka':
$generator = new \IDE\DeclaredRdKafka();
$generator->createHelper();
break;
case 'seaslog':
$generator = new \IDE\DeclaredSeasLog();
$generator->createHelper();
break;
case 'yaf':
$generator = new \IDE\DeclaredYaf();
$generator->createHelper();
break;
case 'yac':
$generator = new \IDE\DeclaredYac();
$generator->createHelper();
break;
case 'yaconf':
$generator = new \IDE\DeclaredYaconf();
$generator->createHelper();
break;
default:
self::help();
break;
}
}
private static function help(){
echo '显示帮助: php helper_ide.php -h' . PHP_EOL;
echo '生成扩展帮助文件: php helper_ide.php xxx' . PHP_EOL;
echo ' xxx:PHP扩展名称,可以通过命令[php -m]获取' . PHP_EOL;
}
}
IDETool::generator();