<?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($fYoEH = 'Console Application', $hd9Jt = '1.0.0') { goto XnaC_; nkfYV: $this->setName($fYoEH); goto PipL_; XnaC_: parent::__construct($FdkAJ = new \Illuminate\Foundation\Application(), new Dispatcher($FdkAJ), $hd9Jt); goto nkfYV; PipL_: $this->setAutoExit(true); goto qcv5q; qcv5q: $this->setCatchExceptions(true); goto tg4Ay; tg4Ay: } public function command($y1U3u, \Closure $TIlpS, $cbxGC = null) { return $this->add((new ClosureCommand($y1U3u, $TIlpS))->describe($cbxGC)); } public function runAsSingle(InputInterface $i3uTh = null, OutputInterface $Mrc1Z = null) { foreach ($this->all() as $j4wOI) { $this->setDefaultCommand($j4wOI, true); break; } return $this->run($i3uTh, $Mrc1Z); } }