امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Changing the options for sending a webhook request currently requires overwriting whole method
Could the code to set the options be moved to its own method, eg. smth. like
PHP:
?
This...
Read more
runCould the code to set the options be moved to its own method, eg. smth. like
PHP:
کد:
protected function getRequestOptions(Webhook $webhook): array
{
$options['headers'] = [
'XF-Content-Type' => $this->data['content_type'],
'XF-Webhook-Event' => $this->data['event'],
'XF-Webhook-Id' => $webhook->webhook_id,
];
[...]
return $options;
}
This...
Read more
