Download attachments

This commit is contained in:
2022-11-29 11:12:06 -03:00
parent c53eb4c7a6
commit f8500e061c
21 changed files with 242 additions and 27 deletions

View File

@ -11,8 +11,12 @@ class Emails
{
return $view->render($response, 'emails.mailboxes');
}
public function messages(ServerRequestInterface $request, ResponseInterface $response, View $view, string $mailbox): ResponseInterface
public function messages(ServerRequestInterface $request, ResponseInterface $response, View $view, int $mailbox_id): ResponseInterface
{
return $view->render($response, 'emails.messages', ['mailbox_id' => $mailbox]);
return $view->render($response, 'emails.messages', compact('mailbox_id'));
}
public function show(ServerRequestInterface $request, ResponseInterface $response, View $view, int $message_id): ResponseInterface
{
return $view->render($response, 'emails.show', compact('message_id'));
}
}