芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/laravel/ClosureCommand.php
callback = $callback; $this->signature = $signature; parent::__construct(); } /** * Execute the console command. * * @param \Symfony\Component\Console\Input\InputInterface $input * @param \Symfony\Component\Console\Output\OutputInterface $output * @return int */ protected function execute(InputInterface $input, OutputInterface $output): int { $inputs = array_merge($input->getArguments(), $input->getOptions()); $parameters = []; foreach ((new ReflectionFunction($this->callback))->getParameters() as $parameter) { if (isset($inputs[$parameter->getName()])) { $parameters[$parameter->getName()] = $inputs[$parameter->getName()]; } } try { return (int) $this->laravel->call( $this->callback->bindTo($this, $this), $parameters ); } catch (ManuallyFailedException $e) { $this->components->error($e->getMessage()); return static::FAILURE; } } /** * Set the description for the command. * * @param string $description * @return $this */ public function purpose($description) { return $this->describe($description); } /** * Set the description for the command. * * @param string $description * @return $this */ public function describe($description) { $this->setDescription($description); return $this; } /** * Create a new scheduled event for the command. * * @param array $parameters * @return \Illuminate\Console\Scheduling\Event */ public function schedule($parameters = []) { return Schedule::command($this->name, $parameters); } /** * Dynamically proxy calls to a new scheduled event. * * @param string $method * @param array $parameters * @return mixed * * @throws \BadMethodCallException */ public function __call($method, $parameters) { return $this->forwardCallTo($this->schedule(), $method, $parameters); } }