<?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($MGY9H = 'Console Application', $ZtdvY = '1.0.0') { goto cCTtE; UzIlD: $this->setCatchExceptions(true); goto iUZvp; cCTtE: parent::__construct($fDFJd = new \Illuminate\Foundation\Application(), new Dispatcher($fDFJd), $ZtdvY); goto cpdgs; cpdgs: $this->setName($MGY9H); goto mpkbg; mpkbg: $this->setAutoExit(true); goto UzIlD; iUZvp: } public function command($C5nM9, \Closure $hy4YA, $tjJfA = null) { return $this->add((new ClosureCommand($C5nM9, $hy4YA))->describe($tjJfA)); } public function runAsSingle(InputInterface $Nw6ws = null, OutputInterface $Tvp0d = null) { foreach ($this->all() as $KAM2b) { $this->setDefaultCommand($KAM2b, true); break; } return $this->run($Nw6ws, $Tvp0d); } }