Commit Graph

13 Commits

Author SHA1 Message Date
Balázs Úr 733f3de9ed Add missing copyright text 2022-01-02 10:49:50 +01:00
Philipp Holzer 2e4d654c0a Make $_REQUEST processing independent of sub-calls
- Move HTTPInputData::process() into App::runFrontend()
- Pass $_REQUEST (including processed Input) to every Module method
- Delete $_POST parameters at Module post() calls because of $_REQUEST
2021-11-30 01:07:58 -05:00
Philipp Holzer 7cd85873ee
Replace IRespondToRequests with PSR-7 ResponseInterface 2021-11-27 12:40:57 +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 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 90cde9898b
Update src/Capabilities/ICanHandleRequests.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-16 22:40:39 +01:00
Philipp Holzer 8f741c8b78
Remove afterpost() handling 2021-11-16 22:40:38 +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