<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Shell; use Illuminate\Console\Application; use Illuminate\Events\Dispatcher; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class ShellApplication extends Application { public function __construct($zO6V5 = 'Console Application', $rfBOW = '1.0.0') { goto QeDZk; bUKwW: $this->setCatchExceptions(true); goto f4AR4; f1sHJ: $this->setName($zO6V5); goto zFzvo; QeDZk: parent::__construct($hoDAo = new \Illuminate\Foundation\Application(), new Dispatcher($hoDAo), $rfBOW); goto f1sHJ; zFzvo: $this->setAutoExit(true); goto bUKwW; f4AR4: } public function command($lLvgO, \Closure $eIeJB, $D1N8Q = null) { return $this->add((new ClosureCommand($lLvgO, $eIeJB))->describe($D1N8Q)); } public function runAsSingle(InputInterface $Km8YS = null, OutputInterface $qrcNd = null) { foreach ($this->all() as $ZsyG0) { $this->setDefaultCommand($ZsyG0, true); break; } return $this->run($Km8YS, $qrcNd); } }