入门客AI创业平台(我带你入门,你带我飞行)
博文笔记

yii2 用命令行操作web下的controller

创建时间:2015-02-03 投稿人: 浏览次数:140

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。