]> git.mxchange.org Git - friendica-addons.git/commitdiff
Introduce new DI container
authornupplaPhil <admin@philipp.info>
Sun, 15 Dec 2019 21:34:10 +0000 (22:34 +0100)
committernupplaPhil <admin@philipp.info>
Fri, 27 Dec 2019 20:55:14 +0000 (21:55 +0100)
- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class

pumpio/pumpio_sync.php
twitter/twitter_sync.php

index de794ad6a97a89140fc059aa1afe498aacc46330..f59d621f45b84be1f2056cccb1c1b498061e61ac 100644 (file)
@@ -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");
 
index b2c655e7c809b0fb6e00cdfad159d9d6b77745cb..d320763bafa4d871ed493911cc9088f406f0bb65 100644 (file)
@@ -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';