Extending NotifierService::notifyCreate is complicated

\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

Читать далее...
 
Активность
Пока что здесь никого нет

Похожие темы

Ответы
0
Просмотры
29
Назад
Верх Низ