Browse Source

Introduce new DI container

- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class
pull/927/head
nupplaPhil 3 years ago
parent
commit
5d4d175bf9
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
  1. 2
      pumpio/pumpio_sync.php
  2. 2
      twitter/twitter_sync.php

2
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");

2
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';

Loading…
Cancel
Save