| 1 | <?php |
||
| 14 | class BinariesController extends CommonController |
||
| 15 | { |
||
| 16 | use \hiqdev\yii2\collection\ManagerTrait; |
||
| 17 | |||
| 18 | protected $_before = ['start']; |
||
| 19 | |||
| 20 | public $defaultClass = 'hidev\base\BinaryPhp'; |
||
| 21 | |||
| 22 | public function actionMake() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Prepares item config. |
||
| 36 | */ |
||
| 37 | public function getItemConfig($name = null, array $config = []) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Prepares and runs with passthru. Returns exit code. |
||
| 47 | * @param string $name binary |
||
| 48 | * @param string $args |
||
| 49 | * @return int exit code |
||
| 50 | */ |
||
| 51 | public function passthru($name, $args = []) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Prepares and runs with exec. Returns stdout string. |
||
| 58 | * @param string $name binary |
||
| 59 | * @param string $args |
||
| 60 | * @return array stdout |
||
| 61 | */ |
||
| 62 | public function exec($name, $args = []) |
||
| 66 | } |
||
| 67 |