From: nupplaPhil Date: Sun, 15 Dec 2019 21:34:10 +0000 (+0100) Subject: Introduce new DI container X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d4d175bf9491d6f62e0803eab2ac2ea605c1f2f;p=friendica-addons.git Introduce new DI container - Adding Friendica\DI class for getting dynamic classes - Replacing BaseObject::getApp() with this class --- diff --git a/pumpio/pumpio_sync.php b/pumpio/pumpio_sync.php index de794ad6..f59d621f 100644 --- a/pumpio/pumpio_sync.php +++ b/pumpio/pumpio_sync.php @@ -3,7 +3,7 @@ use Friendica\Core\Config; use Friendica\Core\Logger; function pumpio_sync_run(&$argv, &$argc) { - $a = Friendica\BaseObject::getApp(); + $a = Friendica\DI::app(); require_once("addon/pumpio/pumpio.php"); diff --git a/twitter/twitter_sync.php b/twitter/twitter_sync.php index b2c655e7..d320763b 100644 --- a/twitter/twitter_sync.php +++ b/twitter/twitter_sync.php @@ -5,7 +5,7 @@ use Friendica\Core\Logger; function twitter_sync_run($argv, $argc) { - $a = Friendica\BaseObject::getApp(); + $a = Friendica\DI::app(); require_once 'addon/twitter/twitter.php';