]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/HTTPException/MethodNotAllowed.php
Merge pull request #13599 from Raroun/Fix_for_Pull_Request_#13596_missing_a_hidden...
[friendica.git] / src / Module / HTTPException / MethodNotAllowed.php
index 9c3ba3d1b824be99d5716e4ac2e15235aba45d65..4a060c3599e31ddac59249683bab61fda3325621 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
 namespace Friendica\Module\HTTPException;
 
 use Friendica\BaseModule;
-use Friendica\DI;
 use Friendica\Network\HTTPException;
 
 class MethodNotAllowed extends BaseModule
 {
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
-               throw new HTTPException\MethodNotAllowedException(DI::l10n()->t('Method Not Allowed.'));
+               throw new HTTPException\MethodNotAllowedException($this->t('Method Not Allowed.'));
        }
 }