<?php
namespace EasyChat\Library\Queue\Jobs;

use EasyChat\Library\Messenger\ContactAvatarService;

class MessengerAvatarJob {
    private $registry;

    public function __construct($registry) {
        $this->registry = $registry;
    }

    public function handle(array $payload): void {
        (new ContactAvatarService($this->registry))->handleQueuePayload($payload);
    }
}
