<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Shell; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class ClosureCommand extends Command { protected $callback; public function __construct($lLvgO, \Closure $eIeJB) { goto nWBsk; nWBsk: $this->callback = $eIeJB; goto hmgXB; j2J9h: parent::__construct(); goto xR0bJ; hmgXB: $this->signature = $lLvgO; goto j2J9h; xR0bJ: } protected function execute(InputInterface $Km8YS, OutputInterface $qrcNd) { goto NQuFq; cl2xw: return $this->laravel->call($this->callback->bindTo($this, $this), $yOJRD); goto zcbRR; RuAm_: foreach ((new \ReflectionFunction($this->callback))->getParameters() as $PmK2F) { if (isset($Zv1sc[$PmK2F->name])) { $yOJRD[$PmK2F->name] = $Zv1sc[$PmK2F->name]; } } goto cl2xw; NQuFq: $Zv1sc = array_merge($Km8YS->getArguments(), $Km8YS->getOptions()); goto nIW_q; nIW_q: $yOJRD = array(); goto RuAm_; zcbRR: } public function describe($D1N8Q) { $this->setDescription($D1N8Q); return $this; } }