forked from friendica/friendica-addons
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes - Replacing BaseObject::getApp() with this class
This commit is contained in:
parent
d18af9c2c4
commit
5d4d175bf9
2 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||||
|
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue