// +---------------------------------------------------------------------- // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Author: liu21st // +---------------------------------------------------------------------- // +---------------------------------------------------------------------- // | 控制台配置 // +---------------------------------------------------------------------- $coreCommands = [ 'workerman' => \app\command\Workerman::class, 'timer' => \app\command\Timer::class, 'util' => \app\command\Util::class, 'npm' => \crmeb\command\Npm::class, 'make:module' => \crmeb\command\MakeModuleCommand::class, 'refund:sync' => \app\command\RefundSync::class, 'pay:recover' => \app\command\PaymentRecover::class, 'pay:clear-cache' => \app\command\ClearPayCache::class, 'notice:clear' => \app\command\NoticeCache::class, 'event:check' => \app\command\EventCheck::class, 'arch:check' => \app\command\ArchCheck::class, 'docs:check' => \app\command\DocsCheck::class, 'registry:check' => \app\command\RegistryCheck::class, 'channel:menu-check' => \app\command\ChannelMenuCheck::class, 'plugin:required-check' => \app\command\RequiredPluginCheck::class, 'plugin:manifest-check' => \app\command\PluginManifestCheck::class, ]; return [ // 执行用户(Windows下无效) 'user' => null, // 指令定义 'commands' => array_merge( $coreCommands, \crmeb\plugin\PluginCommandDiscovery::discover(dirname(__DIR__)) ), ];