src/mako/reactor/Dispatcher.php
public function dispatch(string $command, array $arguments, array $globalOptions): int
	{
		$command = $this->resolve($command);

		$this->checkArgumentsAndOptions($command, $arguments, $globalOptions);

		$returnValue = $this->execute($command, $arguments);

		return is_int($returnValue) ? $returnValue : CommandInterface::STATUS_SUCCESS;
	}
public function dispatch(string $command, array $arguments, array $globalOptions): int
	{
		$command = $this->resolve($command);

		$this->checkArgumentsAndOptions($command, $arguments, $globalOptions);

		$returnValue = $this->execute($command, $arguments);

		return is_int($returnValue) ? $returnValue : CommandInterface::STATUS_SUCCESS;
	}
public function dispatch ( string $ command , array $ arguments , array $ globalOptions ) : int { $ command = $ this -> resolve ( $ command ) ; $ this -> checkArgumentsAndOptions ( $ command , $ arguments , $ globalOptions ) ; $ returnValue = $ this -> execute ( $ command , $ arguments ) ; return is_int ( $ returnValue ) ? $ returnValue : CommandInterface :: STATUS_SUCCESS ; }
Dispatches the command.

@param  string $command       Command class
@param  array  $arguments     Command arguments
@param  array  $globalOptions Global options
@return int
Dispatches the command .