]> git.mxchange.org Git - friendica.git/blobdiff - static/dependencies.config.php
Merge pull request #10498 from MrPetovan/bug/10477-frio-csp-error-event-edit
[friendica.git] / static / dependencies.config.php
index ca9b788534b5e593a66fa2491c1b31eb35a98967..90fa13684ca98a31e28cf4a303b872da198bbbc0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -75,7 +75,7 @@ return [
        Util\ConfigFileLoader::class => [
                'shared'          => true,
                'constructParams' => [
-                       [Dice::INSTANCE => '$basepath']
+                       [Dice::INSTANCE => '$basepath'],
                ],
        ],
        Config\Cache::class          => [
@@ -221,5 +221,10 @@ return [
        ],
        Network\IHTTPRequest::class => [
                'instanceOf' => Network\HTTPRequest::class,
-       ]
+       ],
+       Factory\Api\Mastodon\Error::class => [
+               'constructParams' => [
+                       $_SERVER
+               ],
+       ],
 ];