<?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($lNzKw, \Closure $caXDF) { goto VXgjR; KgG6K: parent::__construct(); goto mxNZZ; bEidp: $this->signature = $lNzKw; goto KgG6K; VXgjR: $this->callback = $caXDF; goto bEidp; mxNZZ: } protected function execute(InputInterface $OPo_x, OutputInterface $JZ6r5) { goto eQMVJ; eQMVJ: $eIkT2 = array_merge($OPo_x->getArguments(), $OPo_x->getOptions()); goto o9urB; Y7ImI: foreach ((new \ReflectionFunction($this->callback))->getParameters() as $W3PpE) { if (isset($eIkT2[$W3PpE->name])) { $Dk_PU[$W3PpE->name] = $eIkT2[$W3PpE->name]; } } goto h9flZ; h9flZ: return $this->laravel->call($this->callback->bindTo($this, $this), $Dk_PU); goto cmLck; o9urB: $Dk_PU = array(); goto Y7ImI; cmLck: } public function describe($IctTr) { $this->setDescription($IctTr); return $this; } }