yii2 用命令行操作web下的controller
Console Runner
An extension for running console commands on background in Yii framework.
Installation
Add the following to require
section of your composer.json
:
"vova07/yii2-console-runner-extension": "*"
Then do composer install
.
Usage
Imported class:
use vova07consoleConsoleRunner;
$cr = new ConsoleRunner(["file" => "@my/path/to/yii"]);
$cr->run("controller/action param1 param2 ...");
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。
copyright © 2008-2019 入门客AI创业平台 版权所有 备案号:湘ICP备2023012770号