Philipp
477bec1977
Fix some PHP8.1 issues if possible
2022-11-09 23:58:23 +01:00
Hypolite Petovan
e0dc7a471e
Create Post/Tag/Remove module class and route
...
- Fix tag name parameter in single tag removal link in mod/photos
- Remove "/post" from backend routes as it was preventing sessions from working in this module. No existing module had a route starting with "/post".
2022-11-03 00:27:08 -04:00
Philipp
f15878195c
make App\Router easier
2022-10-21 19:35:34 +02:00
Philipp
fa8a32e83c
Move DI dependency for App\Router class
2022-10-21 19:35:32 +02:00
Philipp
f83784cc63
Move DI dependency for App\Page class
2022-10-21 19:35:32 +02:00
Philipp
b3f9cef94a
UserSession class [3] - Refactor src/ files excluding Module/Model
2022-10-21 19:35:32 +02:00
Michael
ee1acba9eb
old boot.php functions replaced in /src
2022-10-19 07:56:25 -04:00
Michael
62a0d55fc8
The friendica constants have been moved to the app class
2022-10-17 10:37:48 +00:00
Michael
48182a95fb
Improve quote share ("message_id" added)
2022-10-06 21:50:20 +00:00
Michael Vogel
7ae500f28d
Improved page rendering speed logging
2022-09-20 16:30:56 +02:00
Philipp
34f2b2f558
Add the right exceptions for BaseUrl::redirect and respect them when catching exceptions at the Trust page
2022-07-07 21:47:39 +02:00
Philipp
2dc38e5632
Move documentation :-)
2022-06-23 23:23:36 +02:00
Philipp
5bf5b5e6c9
adaptions :-)
2022-06-23 23:01:09 +02:00
Philipp
12ba37e8d2
add more doc
2022-06-23 22:46:46 +02:00
Philipp
13783089e7
Add copyright
2022-06-23 22:44:17 +02:00
Philipp
d441b90bda
Respect Forwarded-For headers
2022-06-23 22:42:35 +02:00
Roland Häder
1edc6b3c3b
Added more type-hints for "App" classes
2022-06-17 17:18:31 +02:00
Michael
7e747b2f41
API: Speed improvements when fetching posts
2022-06-10 18:49:03 +00:00
Michael
4622814e5f
Configuration for logging added
2022-05-18 03:10:38 +00:00
Michael
f6167b4cfd
New function to exit the program
2022-05-18 02:13:54 +00:00
Michael
aacaa3c2cf
Log the command, not the module
2022-05-17 21:25:01 +00:00
Michael
4016a576d5
Log the execution time
2022-05-17 20:47:23 +00:00
atjn
31ed9b450d
Update default icon
2022-04-28 12:41:26 +02:00
Michael
4a22034be6
Unified output via the "httpExit" function
2022-04-10 08:31:55 +00:00
Philipp
0e45f22b06
optimizations
2022-01-04 20:59:29 +01:00
Philipp
6dbbd08179
Use rawContent for Special Options to avoid a protected options() method
2022-01-04 20:59:29 +01:00
Philipp
a3a32af5c1
Add feedback
2022-01-04 20:59:27 +01:00
Philipp
dc46af5ea1
Automatically return allowed HTTP methods for OPTIONS per specific endpoint
2022-01-04 20:59:27 +01:00
Philipp
4e67bfed8d
Use Args::getMethod() at various places
2022-01-04 20:59:26 +01:00
Philipp
ee2a15d822
Add HTTP method to App\Arguments
2022-01-04 20:59:25 +01:00
Philipp
c7f2ba213b
Fix OPTIONS
2022-01-04 20:59:25 +01:00
Philipp
eaad220738
Add explicit status setting for PSR/ResponseInterface & add tests for OPTIONS endpoint
2022-01-04 20:59:25 +01:00
Philipp
3092e74a3a
Add OPTIONS endpoint
2022-01-04 20:59:25 +01:00
Philipp
01c1e137f7
Add OPTIONS endpoint
2022-01-04 20:59:24 +01:00
Philipp
322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
...
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b
Update copyright
2022-01-02 08:27:47 +01:00
Philipp
3f6358c85c
Add round
2021-12-10 21:18:43 +01:00
Philipp
39c2282c12
Add Dice logging for Module creation
2021-12-10 21:15:15 +01:00
Michael
7218d6e171
Fix the performance calculation for the content
2021-12-09 13:04:51 +00:00
Philipp
e4000155f3
Fix Page Header usage
2021-11-27 12:40:58 +01:00
Philipp
7cd85873ee
Replace IRespondToRequests with PSR-7 ResponseInterface
2021-11-27 12:40:57 +01:00
Philipp
537b74f307
Inherit ApiResponse
from Response
2021-11-27 12:40:54 +01:00
Philipp
561aba18e3
Introduce Response
for Modules to create a testable way for module responses
2021-11-27 12:40:38 +01:00
Philipp
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
238613fd01
Add feedback :)
2021-11-27 12:39:46 +01:00
Philipp
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
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
ce578a7745
Replace Module::init() with Constructors
2021-11-17 22:14:33 +01:00
Philipp
de6bb280b1
Hotfix: Deleted content
2021-11-17 13:39:48 +01:00