webhookUrl = $config['bitrix']['webhook_url']; $this->client = new Client(['http_errors' => false]); // No lanzar excepción en 400/500 } public function call($method, $params = []) { try { $response = $this->client->post($this->webhookUrl . $method, [ 'json' => $params ]); return json_decode($response->getBody(), true); } catch (Exception $e) { return ['result' => []]; } } }