<?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($HRrYd = 'Console Application', $sEXRx = '1.0.0') { goto oldZr; Z4nDi: $this->setName($HRrYd); goto eSIRj; oldZr: parent::__construct($a0IpZ = new \Illuminate\Foundation\Application(), new Dispatcher($a0IpZ), $sEXRx); goto Z4nDi; eSIRj: $this->setAutoExit(true); goto sViQq; sViQq: $this->setCatchExceptions(true); goto Cg_2u; Cg_2u: } public function command($lNzKw, \Closure $caXDF, $IctTr = null) { return $this->add((new ClosureCommand($lNzKw, $caXDF))->describe($IctTr)); } public function runAsSingle(InputInterface $OPo_x = null, OutputInterface $JZ6r5 = null) { foreach ($this->all() as $dTL23) { $this->setDefaultCommand($dTL23, true); break; } return $this->run($OPo_x, $JZ6r5); } }