<?php // +---------------------------------------------------------------------- // | 控制台配置 // +---------------------------------------------------------------------- return [ // 指令定义 'commands' => [ // 定时任务 'timer' => \app\timer\command\Timer::class, //test脚本 'test' => 'app\command\test', ], ];