• Модуль: imconnector
  • Путь к файлу: ~/bitrix/modules/imconnector/lib/provider/base/input.php
  • Класс: BitrixImConnectorProviderBaseInput
  • Вызов: Input::processingCommand
protected function processingCommand(string $command, array $message): Result
{
	$result = clone $this->result;

	if ($result->isSuccess())
	{
		$result = Connector::initConnectorHandler($this->connector)->processingInputCommand($command, $message, $this->line);

		if ($result->isSuccess())
		{
			$resultEvent = $this->sendEventCommand($command, $result->getResult());
			if (!$resultEvent->isSuccess())
			{
				$result->addErrors($resultEvent->getErrors());
			}

			$result->setResult(array_merge($message, $result->getResult()));
		}
	}

	return $result;
}