امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
\XF\Service\Report\NotifierService::notifyCreate is currently kinda monolithic which makes it somewhat difficult to extend.Could this be made more modular, eg. smth. like
PHP:
کد:
protected function getCreateNotificationEmailParams(User $user): array
{
$report = $this->report;
$comment = $this->comment;
return [
'receiver' => $user,
'reporter' => $comment->User,
'comment' => $comment,
'report' => $report,
'message' =>...
Read more
