public function hasCommand(string $name): bool
	{
		$this->initCommands();

		// If command is already registered, we're good
		if (isset($this->commands[$name]))
		{
			return true;
		}

		// If there is no loader, we can't look for a command there
		if (!$this->commandLoader)
		{
			return false;
		}

		return $this->commandLoader->has($name);
	}
public function hasCommand(string $name): bool
	{
		$this->initCommands();

		// If command is already registered, we're good
		if (isset($this->commands[$name]))
		{
			return true;
		}

		// If there is no loader, we can't look for a command there
		if (!$this->commandLoader)
		{
			return false;
		}

		return $this->commandLoader->has($name);
	}
public function hasCommand ( string $ name ) : bool { $ this -> initCommands ( ) ; // If command is already registered, we're good if ( isset ( $ this -> commands [ $ name ] ) ) { return true ; } // If there is no loader, we can't look for a command there if ( ! $ this -> commandLoader ) { return false ; } return $ this -> commandLoader -> has ( $ name ) ; }
Check if the application has a command with the given name.

@param   string  $name  The name of the command to check for existence.

@return  boolean

@since   __DEPLOY_VERSION__
Check if the application has a command with the given name .