Introduce new DI container

- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class
This commit is contained in:
nupplaPhil 2019-12-15 22:34:10 +01:00
parent d18af9c2c4
commit 5d4d175bf9
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ use Friendica\Core\Config;
use Friendica\Core\Logger; use Friendica\Core\Logger;
function pumpio_sync_run(&$argv, &$argc) { function pumpio_sync_run(&$argv, &$argc) {
$a = Friendica\BaseObject::getApp(); $a = Friendica\DI::app();
require_once("addon/pumpio/pumpio.php"); require_once("addon/pumpio/pumpio.php");

View file

@ -5,7 +5,7 @@ use Friendica\Core\Logger;
function twitter_sync_run($argv, $argc) function twitter_sync_run($argv, $argc)
{ {
$a = Friendica\BaseObject::getApp(); $a = Friendica\DI::app();
require_once 'addon/twitter/twitter.php'; require_once 'addon/twitter/twitter.php';