mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-12 01:04:27 +02:00
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes - Replacing BaseObject::getApp() with this class
This commit is contained in:
parent
a9220aa83b
commit
1de3f186d7
132 changed files with 377 additions and 270 deletions
|
@ -6,12 +6,13 @@
|
|||
namespace Friendica\Worker;
|
||||
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\DI;
|
||||
|
||||
Class ForkHook
|
||||
{
|
||||
public static function execute($name, $hook, $data)
|
||||
{
|
||||
$a = \Friendica\BaseObject::getApp();
|
||||
$a = DI::app();
|
||||
|
||||
Hook::callSingle($a, $name, $hook, $data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue