Replace global $a with BaseObject::getApp()

This commit is contained in:
Hypolite Petovan
2018-07-09 22:39:59 -04:00
parent d0780ccf7d
commit 820afa2284
17 changed files with 51 additions and 56 deletions

View File

@@ -7,9 +7,11 @@ namespace Friendica\Worker;
use Friendica\Core\Addon;
Class ForkHook {
public static function execute($name, $hook, $data) {
global $a;
Class ForkHook
{
public static function execute($name, $hook, $data)
{
$a = \Friendica\BaseObject::getApp();
Addon::callSingleHook($a, $name, $hook, $data);
}