1
0
Fork 0
Commit graph

23 commits

Author SHA1 Message Date
ad5b0762b0
Fix LegacyModule content return 2021-11-27 12:40:37 +01:00
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
296a9070a0
Fix LegacyModule init() 2021-11-19 20:21:37 +01:00
645e4edc63
Revert "Revert "Replace Module::init() with Constructors""
This reverts commit 89d6c89b67.
2021-11-19 20:18:48 +01:00
89d6c89b67
Revert "Replace Module::init() with Constructors" 2021-11-19 07:23:23 -05:00
ce578a7745
Replace Module::init() with Constructors 2021-11-17 22:14:33 +01:00
766b3f0d01
Fixups 2021-11-16 22:40:39 +01:00
8f741c8b78
Remove afterpost() handling 2021-11-16 22:40:38 +01:00
5879535822
Switch static::$parameters to $this->parameters 2021-11-14 23:49:07 +01:00
489cd0884a
Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
714f0febc4
Replace $parameters argument per method with static::$parameters 2021-11-14 23:49:05 +01:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
nupplaPhil
23c64b9a11
Add license info at Friendica classes 2020-02-09 15:45:36 +01:00
5d8c625549
cleanup 2020-01-19 16:31:34 +01:00
5dfee31108
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:16 +01:00
1de3f186d7
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class
2019-12-29 20:16:55 +01:00
8c03bdada9 parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
bd62d548db Added parameters 2019-11-05 20:22:54 +00:00
cb3f09ae4f Refactor namespaces
- Remove unused use statements
- Add required use statements
- Escape global classes
2019-01-21 10:43:42 -05:00
3282ce5389 Fix PHPDoc comments project-wide 2019-01-21 10:35:51 -05:00
fabrixxm
972775e58e
Fix Notice in LegacyModule
Notice: Only variables should be passed by reference in src/LegacyModule.php on line 68
2018-11-13 14:37:51 +01:00
1a37224910 Change file_exists to is_readable in LegacyModule 2018-10-20 22:42:04 -04:00
5326cc0c2e Add Friendica\LegacyModule class 2018-10-20 22:34:26 -04:00