/**
* @param ReadAllNotifications $command
* @throws \Flarum\Core\Exception\PermissionDeniedException
*/
public function handle(ReadAllNotifications $command)
{
$actor = $command->actor;
$this->assertRegistered($actor);
$this->notifications->markAllAsRead($actor);
}