Commit graph

233 commits

Author SHA1 Message Date
Philipp Holzer e4000155f3
Fix Page Header usage 2021-11-27 12:40:58 +01:00
Philipp Holzer 7cd85873ee
Replace IRespondToRequests with PSR-7 ResponseInterface 2021-11-27 12:40:57 +01:00
Philipp Holzer 537b74f307
Inherit ApiResponse from Response 2021-11-27 12:40:54 +01:00
Philipp Holzer 561aba18e3
Introduce Response for Modules to create a testable way for module responses 2021-11-27 12:40:38 +01:00
Philipp Holzer 8bdd90066f
Make BaseModule a real entity
- Add all dependencies, necessary to run the content (baseUrl, Arguments)
- Encapsulate all POST/GET/DELETE/PATCH/PUT methods as protected methods inside the BaseModule
- Return Module content ONLY per `BaseModule::run()` (including the Hook logic there as well)
2021-11-27 12:40:36 +01:00
Philipp Holzer 238613fd01
Add feedback :) 2021-11-27 12:39:46 +01:00
Philipp Holzer b5d2d32b44
Split and delete ModuleController
- $moduleName is part of the argument string => App\Arguments
- $isBackend boolean already part of App\Mode::isBackend()
- $module is now the direct return of App\Router::getModule()
- ModuleController::run() moved to BaseModule::run()
2021-11-27 12:39:45 +01:00
Philipp Holzer 645e4edc63
Revert "Revert "Replace Module::init() with Constructors""
This reverts commit 89d6c89b67.
2021-11-19 20:18:48 +01:00
Hypolite Petovan 89d6c89b67
Revert "Replace Module::init() with Constructors" 2021-11-19 07:23:23 -05:00
Philipp Holzer ce578a7745
Replace Module::init() with Constructors 2021-11-17 22:14:33 +01:00
Philipp Holzer de6bb280b1
Hotfix: Deleted content 2021-11-17 13:39:48 +01:00
Philipp 804408e4bb
Update src/App/ModuleController.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-17 06:57:48 +01:00
Philipp 61a507000f
Update src/App/ModuleController.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-17 06:57:37 +01:00
Philipp Holzer c95d47b0b4
Refactor App\Module to App\ModuleController and rename properties 2021-11-16 22:40:39 +01:00
Philipp Holzer 8f741c8b78
Remove afterpost() handling 2021-11-16 22:40:38 +01:00
Philipp 85304b6e8f
Update src/App/Page.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-16 21:12:12 +01:00
Philipp 2f4e19a82f
Update src/App/Module.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-16 21:11:47 +01:00
Philipp Holzer 5879535822
Switch static::$parameters to $this->parameters 2021-11-14 23:49:07 +01:00
Philipp Holzer 489cd0884a
Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
Philipp Holzer 714f0febc4
Replace $parameters argument per method with static::$parameters 2021-11-14 23:49:05 +01:00
Philipp Holzer 018275919c
Create interface for static Module calls 2021-11-14 23:30:04 +01:00
Michael 63da4a75e9 The boot.php had been cleared of most functions 2021-11-04 20:29:59 +00:00
Michael 516018861e Merge remote-tracking branch 'upstream/develop' into error-handling 2021-10-31 05:25:39 +00:00
Michael 4236a9a105 Improved http error handling 2021-10-29 23:21:07 +00:00
Philipp Holzer 58eea1adaa
Cleanup namespaces 2021-10-26 22:11:10 +02:00
Philipp Holzer b216317477
Refactoring Core class structures ... 2021-10-26 22:11:09 +02:00
Philipp Holzer ab83d0dd27
Restructure (P)Config to follow new paradigm 2021-10-26 22:11:06 +02:00
Philipp Holzer 68046573a4
Restructure Cache to follow new paradigm 2021-10-26 22:11:06 +02:00
Michael 15b93b4459 "getUserNickname" is now "getLoggedInUserNickname" 2021-08-09 19:48:39 +00:00
Michael b8fa75b2dd Changed function name 2021-08-09 15:29:07 +00:00
Michael fc283ab928 Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Hypolite Petovan 3cef3ab107
Merge pull request #10548 from annando/args
Replaced argv/argc with replacement functions
2021-07-26 18:43:47 -04:00
Hypolite Petovan e34795762d
Merge pull request #10544 from annando/router-lock
Lock before recreate / fix cache key misspelling
2021-07-26 03:57:30 -04:00
Michael 540ddb9265 Hopefully making the tests to work 2021-07-25 14:27:13 +00:00
Michael 2aa2c61479 Lock before recreate / fix cache key misspelling 2021-07-25 04:31:48 +00:00
Michael 2502a9192d Many more app-variables removed 2021-07-24 10:09:39 +00:00
Michael 8e9433f2e9 Fix: Fetching of non public photos 2021-07-01 18:05:54 +00:00
Michael 89608d5844 Set CORS header fields to support Halcyon 2021-06-24 18:02:29 +00:00
Michael ae5f57233e Issue 10392: Avoid "Friendica can't display this page at the moment" 2021-06-16 13:23:07 +00:00
Michael 4706d60b04 Added documentation 2021-06-09 07:44:19 +00:00
Michael c9b66d6e28 Deactivate CORS related headers 2021-06-09 07:42:23 +00:00
Michael 58a513cb30 Support HTTP OPTIONS requests 2021-06-09 07:27:42 +00:00
Michael 6236870aa4 Add all required HTTP methods 2021-05-08 09:14:19 +00:00
Balázs Úr 054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Hypolite Petovan 6b0df74ed7 Add blocking author from an item context feature 2021-01-23 05:30:03 -05:00
Michael 9a6141dcbe Use "pcntl_fork" to fork processes 2021-01-01 19:35:29 +00:00
Michael 5fb83d0632 Improved performance profiler 2020-12-09 22:10:27 +00:00
Michael db5cd6e66c API: Mastodon endpoints added as "unimplemented" 2020-11-26 07:02:31 +00:00
Hypolite Petovan 06e3294415 Centralize routes file existence check in App\Router 2020-10-15 21:45:51 -04:00
Hypolite Petovan df23690a93 Add routes file recompute on last modification time change 2020-10-15 11:45:15 -04:00