<?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($L1N0l = 'Console Application', $iJw8F = '1.0.0') { goto kaZLz; oWvaM: $this->setName($L1N0l); goto ZRC0M; ZRC0M: $this->setAutoExit(true); goto eE2D7; eE2D7: $this->setCatchExceptions(true); goto qNeJE; kaZLz: parent::__construct($XxVqS = new \Illuminate\Foundation\Application(), new Dispatcher($XxVqS), $iJw8F); goto oWvaM; qNeJE: } public function command($URLpY, \Closure $GdSl0, $rRCwS = null) { return $this->add((new ClosureCommand($URLpY, $GdSl0))->describe($rRCwS)); } public function runAsSingle(InputInterface $WZ8dY = null, OutputInterface $LHbsa = null) { foreach ($this->all() as $g7pY7) { $this->setDefaultCommand($g7pY7, true); break; } return $this->run($WZ8dY, $LHbsa); } }