]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Inbox.php
Remove deprecated code
[friendica.git] / src / Module / Inbox.php
index 2cc273b139910c647a141b42bcf484fcdcd58fee..21f2698b7c8f7de2e387c495a051de20656a8bc1 100644 (file)
@@ -6,10 +6,9 @@
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
-use Friendica\Core\Config;
 use Friendica\Core\Logger;
-use Friendica\Core\System;
 use Friendica\Database\DBA;
+use Friendica\DI;
 use Friendica\Protocol\ActivityPub;
 use Friendica\Util\HTTPSignature;
 use Friendica\Util\Network;
@@ -19,9 +18,9 @@ use Friendica\Util\Network;
  */
 class Inbox extends BaseModule
 {
-       public static function rawContent()
+       public static function rawContent(array $parameters = [])
        {
-               $a = self::getApp();
+               $a = DI::app();
 
                $postdata = Network::postdata();
 
@@ -29,7 +28,7 @@ class Inbox extends BaseModule
                        throw new \Friendica\Network\HTTPException\BadRequestException();
                }
 
-               if (Config::get('debug', 'ap_inbox_log')) {
+               if (DI::config()->get('debug', 'ap_inbox_log')) {
                        if (HTTPSignature::getSigner($postdata, $_SERVER)) {
                                $filename = 'signed-activitypub';
                        } else {