命令行模式怎么调用控制器的方法?

浏览:1680 发布日期:2017/06/20 分类:ThinkPHP5专区 关键字: 命令行
protected function execute(Input $input, Output $output)
{
$event = controller('CaptureUrl', 'service');
dump($event);
}
以上的代码,执行后 $event的值为null
有正确的调用方法吗?请各位指教。
最佳答案
评论( 相关
后面还有条评论,点击查看>>