Added Worker
This commit is contained in:
parent
c088249e1b
commit
a25fd7713b
19
src/Worker/UpdateContact.php
Normal file
19
src/Worker/UpdateContact.php
Normal 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]);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue