friendica/src/Module
2025-06-21 13:25:31 +02:00
..
ActivityPub Fix code style 2025-01-13 13:31:54 +00:00
Admin Let AddonHelper::getAddonInfo() throw exception on invalid addons 2025-06-04 09:26:38 +00:00
Api Change 500 response to 422 response 2025-03-07 10:50:15 +00:00
Blocklist/Domain REUSE src directory 2024-08-24 15:27:00 +02:00
Calendar Fix codestyle 2025-01-26 12:59:59 +00:00
Contact Fix code style 2025-05-13 06:18:41 +00:00
Conversation Fix code style 2025-05-13 06:18:41 +00:00
Debug Remove dependency for twitter addon 2024-11-16 10:37:48 +00:00
DFRN OStatus support removed 2024-09-11 03:44:40 +00:00
Diaspora REUSE src directory 2024-08-24 15:27:00 +02:00
Filer Fix code style 2025-03-17 07:38:53 +00:00
HTTPException Remove dreamhost_error_hack 2024-11-18 08:53:09 +00:00
Item Fix code style 2025-02-14 08:14:27 +00:00
Media remove unneeded newlines 2025-01-10 09:40:09 +01:00
Moderation Add translations for fixed typos in Conversation.php, Create.php, Channels.php 2025-05-17 22:03:09 +02:00
Notifications Merge branch 'develop' into refactoring-of-app-class 2024-11-16 19:29:56 +00:00
OAuth Fix code style 2025-01-13 13:31:54 +00:00
OStatus OStatus support removed 2024-09-11 03:44:40 +00:00
Ping Fix compat with PHP 7.4 2025-04-15 06:11:17 +00:00
Post Fix redirect for photo remove tag page and only show the link if tags exist. 2025-05-14 18:47:15 +02:00
Privacy Fix code style 2025-05-13 06:18:41 +00:00
Profile Clean input values 2025-05-24 19:08:35 +00:00
Search Search: Replace "No results" notification with text, with translations 2025-06-21 13:25:31 +02:00
Security Update src/Module/Security/OpenID.php 2024-12-06 23:23:33 +01:00
Settings Merge pull request #14887 from mf-fx/fix_typo 2025-05-25 19:35:20 +02:00
Special fix non-capturing catch for PHP 7.4 support 2024-12-07 07:11:28 +00:00
Update Fix codestyle 2025-02-09 20:24:34 +00:00
User Fix cs 2025-02-08 16:38:01 +00:00
WellKnown OStatus support removed 2024-09-11 03:44:40 +00:00
About.php REUSE src directory 2024-08-24 15:27:00 +02:00
AccountManagementControlDocument.php REUSE src directory 2024-08-24 15:27:00 +02:00
Acctlink.php REUSE src directory 2024-08-24 15:27:00 +02:00
Apps.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
Attach.php Replace Logger with $this->logger in Module classes 2025-01-13 11:00:50 +00:00
BaseAdmin.php Fix code style 2025-02-04 15:21:14 +00:00
BaseApi.php Fix code style 2025-01-13 13:31:54 +00:00
BaseModeration.php Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
BaseNotifications.php Fix errors in all modules 2024-11-18 22:20:28 +00:00
BaseProfile.php Create event for profile_tabs hook 2025-03-24 12:41:40 +00:00
BaseSearch.php Fix code style 2025-01-13 13:31:54 +00:00
BaseSettings.php Fix active tab 2025-02-10 12:43:16 +00:00
Bookmarklet.php REUSE src directory 2024-08-24 15:27:00 +02:00
Circle.php Fix errors in all modules 2024-11-18 22:20:28 +00:00
Contact.php Fix PHP-CS 2025-05-29 19:06:13 +02:00
Credits.php REUSE src directory 2024-08-24 15:27:00 +02:00
Directory.php Fix code style 2025-05-13 06:18:41 +00:00
Feed.php REUSE src directory 2024-08-24 15:27:00 +02:00
FollowConfirm.php REUSE src directory 2024-08-24 15:27:00 +02:00
Friendica.php Fix code style 2025-05-13 06:18:41 +00:00
FriendSuggest.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
Hashtag.php REUSE src directory 2024-08-24 15:27:00 +02:00
HCard.php OStatus support removed 2024-09-11 03:44:40 +00:00
Help.php REUSE src directory 2024-08-24 15:27:00 +02:00
Home.php Create event for home_content hook 2025-03-25 15:57:26 +00:00
Install.php use env variables in install wizard for values if available 2025-02-05 14:56:05 +00:00
Invite.php Remove unused calls of DI::app() 2024-11-21 10:12:27 +00:00
Magic.php Merge branch 'develop' into phpstan-level-1 2024-11-18 21:45:42 +00:00
Maintenance.php REUSE src directory 2024-08-24 15:27:00 +02:00
Manifest.php REUSE src directory 2024-08-24 15:27:00 +02:00
NodeInfo110.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
NodeInfo120.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
NodeInfo121.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
NodeInfo122.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
NodeInfo210.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
NoScrape.php Remove unused calls of DI::app() 2024-11-21 10:12:27 +00:00
OpenSearch.php Merge branch 'phpstan-level-1-in-addons' into phpstan-level-2 2024-12-09 22:31:13 +00:00
Owa.php Fix code style 2025-01-13 13:31:54 +00:00
ParseUrl.php Fix code style 2025-05-13 06:18:41 +00:00
Photo.php Fix PHPStan errors 2025-05-09 06:40:49 +00:00
RandomProfile.php Rename DI::apphelper() to DI::appHeler() 2024-11-17 20:00:34 +00:00
README.md fixing text 2019-05-01 20:17:15 +02:00
ReallySimpleDiscovery.php REUSE src directory 2024-08-24 15:27:00 +02:00
Register.php Fix code style 2025-05-13 06:18:41 +00:00
Response.php REUSE src directory 2024-08-24 15:27:00 +02:00
RobotsTxt.php REUSE src directory 2024-08-24 15:27:00 +02:00
Smilies.php Fix code style 2025-01-13 13:31:54 +00:00
Statistics.php fix code style 2025-04-28 14:12:27 +00:00
Stats.php fix code style 2025-04-28 14:12:27 +00:00
StatsCaching.php Add a bunch of tests for StatsCaching 2025-04-27 21:26:48 +02:00
Theme.php REUSE src directory 2024-08-24 15:27:00 +02:00
ThemeDetails.php REUSE src directory 2024-08-24 15:27:00 +02:00
ToggleMobile.php REUSE src directory 2024-08-24 15:27:00 +02:00
Tos.php REUSE src directory 2024-08-24 15:27:00 +02:00
Welcome.php REUSE src directory 2024-08-24 15:27:00 +02:00
Xrd.php Fix more errors 2024-11-17 22:26:43 +00:00

Friendica\Module

The Module namespace contains the different modules of Friendica. Each module is loaded through the App.

There are mainly two types of modules:

  • frontend modules to interact with users
  • backend modules to interact with machine requests

Frontend modules

This type of modules mainly needs a template, which are generally located at view/templates/.

A frontend module should extend the BaseModule, especially the content() method.

Backend modules

This type of modules mainly responds either with encoded XML or with JSON output. It isn't intended to respond with human readable text.

A frontend module should extend the BaseModule, especially the rawContent() method.

Routing

Every module needs to be accessed within a route. The routes are defined inside Router->collectRoutes().

Use the given routes as a pattern for further routes.

The routing library and further documentation can be found here.