Added Worker

This commit is contained in:
Michael 2019-04-08 21:06:15 +00:00
parent c088249e1b
commit a25fd7713b
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?php
/**
* @file src/Worker/UpdateContact.php
*/
namespace Friendica\Worker;
use Friendica\Core\Logger;
use Friendica\Model\Contact;
class UpdateContact
{
public static function execute($contact_id)
{
$success = Contact::updateFromProbe($contact_id);
Logger::info('Updated from probe', ['id' => $contact_id, 'success' => $success]);
}
}