2018-02-06 23:52:36 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @file src/Worker/ForkHook.php
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Friendica\Worker;
|
|
|
|
|
2018-10-21 07:15:02 +02:00
|
|
|
use Friendica\Core\Hook;
|
2018-02-06 23:52:36 +01:00
|
|
|
|
2018-07-10 04:39:59 +02:00
|
|
|
Class ForkHook
|
|
|
|
{
|
|
|
|
public static function execute($name, $hook, $data)
|
|
|
|
{
|
|
|
|
$a = \Friendica\BaseObject::getApp();
|
2018-02-06 23:52:36 +01:00
|
|
|
|
2018-10-21 07:15:02 +02:00
|
|
|
Hook::callSingle($a, $name, $hook, $data);
|
2018-02-06 23:52:36 +01:00
|
|
|
}
|
|
|
|
}
|