1 | <?php |
||
10 | class CommandLineRunner |
||
11 | { |
||
12 | /** |
||
13 | * Ensure that all the required files are loaded |
||
14 | * |
||
15 | * @return void |
||
16 | */ |
||
17 | public static function autoload() |
||
24 | |||
25 | /** |
||
26 | * Run the command-line program |
||
27 | * |
||
28 | * @return void |
||
29 | */ |
||
30 | public static function run() |
||
45 | |||
46 | /** |
||
47 | * Get the list of targets from command-line |
||
48 | * |
||
49 | * @return string[] |
||
50 | */ |
||
51 | protected static function getTargets() |
||
55 | |||
56 | /** |
||
57 | * Preload all PHP files from given dir |
||
58 | * |
||
59 | * @param string $dir Path to the dir |
||
60 | * @return void |
||
61 | */ |
||
62 | protected static function preload($dir) |
||
70 | } |