]> git.mxchange.org Git - friendica.git/blob - src/Worker/ForkHook.php
declare $bang variable in editpost_content()
[friendica.git] / src / Worker / ForkHook.php
1 <?php
2 /**
3  * @file src/Worker/ForkHook.php
4  */
5
6 namespace Friendica\Worker;
7
8 use Friendica\Core\Addon;
9
10 Class ForkHook {
11         public static function execute($name, $hook_json, $data_json) {
12                 global $a;
13
14                 $hook = json_decode($hook_json, true);
15                 $data = json_decode($data_json, true);
16
17                 Addon::callSingleHook($a, $name, $hook, $data);
18         }
19 }