]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/HTTPSignature.php
Make EMailer util dynamic
[friendica.git] / src / Util / HTTPSignature.php
index e0128900288ea2b684fd5b7b0aaa7120964653b6..e3151eb4ae5f1662df478d1db204eb416ce247f3 100644 (file)
@@ -6,8 +6,8 @@
 namespace Friendica\Util;
 
 use Friendica\Database\DBA;
-use Friendica\Core\Config;
 use Friendica\Core\Logger;
+use Friendica\DI;
 use Friendica\Model\User;
 use Friendica\Model\APContact;
 
@@ -111,8 +111,6 @@ class HTTPSignature
        }
 
        /**
-        * @brief
-        *
         * @param array   $head
         * @param string  $prvkey
         * @param string  $keyid (optional, default 'Key')
@@ -145,8 +143,6 @@ class HTTPSignature
        }
 
        /**
-        * @brief
-        *
         * @param array  $head
         * @param string $prvkey
         * @param string $alg (optional) default 'sha256'
@@ -178,8 +174,6 @@ class HTTPSignature
        }
 
        /**
-        * @brief
-        *
         * @param string $header
         * @return array associate array with
         *   - \e string \b keyID
@@ -224,8 +218,6 @@ class HTTPSignature
        }
 
        /**
-        * @brief
-        *
         * @param string $header
         * @param string $prvkey (optional), if not set use site private key
         *
@@ -241,7 +233,7 @@ class HTTPSignature
                $iv = $key = $alg = $data = null;
 
                if (!$prvkey) {
-                       $prvkey = Config::get('system', 'prvkey');
+                       $prvkey = DI::config()->get('system', 'prvkey');
                }
 
                $matches = [];