You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
820 B
43 lines
820 B
5 months ago
|
<?php
|
||
|
|
||
|
declare (strict_types=1);
|
||
|
|
||
|
namespace app\command;
|
||
|
|
||
|
use think\console\Input;
|
||
|
use think\console\Output;
|
||
|
use think\console\Command;
|
||
|
use think\db\exception\DataNotFoundException;
|
||
|
use think\db\exception\ModelNotFoundException;
|
||
|
|
||
|
|
||
|
class SprictTest extends Command
|
||
|
{
|
||
|
|
||
|
protected function configure()
|
||
|
{
|
||
|
// 指令配置
|
||
|
$this->setName('SprictTest')
|
||
|
->setDescription('测试输出');
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @notes:执行
|
||
|
* @param Input $input
|
||
|
* @param Output $output
|
||
|
* @throws DataNotFoundException
|
||
|
* @throws DbException
|
||
|
* @throws ModelNotFoundException
|
||
|
* @author: wanghousheng
|
||
|
*/
|
||
|
protected function execute(Input $input, Output $output)
|
||
|
{
|
||
|
|
||
|
echo "666";
|
||
|
}
|
||
|
|
||
|
public function test()
|
||
|
{
|
||
|
echo "hello world";
|
||
|
}
|
||
|
}
|