Bug Extending NotifierService::notifyCreate is complicated

There is a bug in this version
K

Kirby

Guest
\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:

Code:
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

Continue reading...