<?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($TTiWe = 'Console Application', $YQQ1U = '1.0.0') { goto iYLYi; okrMM: $this->setAutoExit(true); goto goAKH; iYLYi: parent::__construct($jbaYM = new \Illuminate\Foundation\Application(), new Dispatcher($jbaYM), $YQQ1U); goto Ta0Hk; Ta0Hk: $this->setName($TTiWe); goto okrMM; goAKH: $this->setCatchExceptions(true); goto WLQW1; WLQW1: } public function command($DUcCS, \Closure $NOPYJ, $TYi0p = null) { return $this->add((new ClosureCommand($DUcCS, $NOPYJ))->describe($TYi0p)); } public function runAsSingle(InputInterface $Q9nmo = null, OutputInterface $m8MNu = null) { foreach ($this->all() as $d2exE) { $this->setDefaultCommand($d2exE, true); break; } return $this->run($Q9nmo, $m8MNu); } }