]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Settings/Profile/Photo/Index.php
Introduce `Response` for Modules to create a testable way for module responses
[friendica.git] / src / Module / Settings / Profile / Photo / Index.php
index cda71a7c69e47cf6a9a59902570190c1bc28422a..309a893e666b618cea848f5c8aab6e8095e2fd06 100644 (file)
@@ -34,7 +34,7 @@ use Friendica\Util\Strings;
 
 class Index extends BaseSettings
 {
-       public static function post(array $parameters = [])
+       protected function post(array $request = [], array $post = [])
        {
                if (!Session::isAuthenticated()) {
                        return;
@@ -106,7 +106,7 @@ class Index extends BaseSettings
                DI::baseUrl()->redirect('settings/profile/photo/crop/' . $resource_id);
        }
 
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
                if (!Session::isAuthenticated()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));