friendica/src/Module
Philipp Holzer 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
..
Admin Introduce new DI container 2019-12-29 20:16:55 +01:00
Api/Mastodon Improve Api\Mastodon\Account with data from apcontact 2019-12-11 08:25:45 -05:00
Base Introduce new DI container 2019-12-29 20:16:55 +01:00
Contact parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
Debug Introduce new DI container 2019-12-29 20:16:55 +01:00
Diaspora Introduce new DI container 2019-12-29 20:16:55 +01:00
Filer Introduce new DI container 2019-12-29 20:16:55 +01:00
HTTPException parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
Item Introduce new DI container 2019-12-29 20:16:55 +01:00
Notifications Introduce new DI container 2019-12-29 20:16:55 +01:00
Profile Introduce new DI container 2019-12-29 20:16:55 +01:00
Search Introduce new DI container 2019-12-29 20:16:55 +01:00
Security Introduce new DI container 2019-12-29 20:16:55 +01:00
Settings Introduce new DI container 2019-12-29 20:16:55 +01:00
Special Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
WellKnown Introduce new DI container 2019-12-29 20:16:55 +01:00
AccountManagementControlDocument.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
Acctlink.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
AllFriends.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Apps.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Attach.php Introduce new DI container 2019-12-29 20:16:55 +01:00
BaseAdminModule.php Introduce new DI container 2019-12-29 20:16:55 +01:00
BaseSearchModule.php Introduce new DI container 2019-12-29 20:16:55 +01:00
BaseSettingsModule.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Bookmarklet.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Contact.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Credits.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
Delegation.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Directory.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Feed.php Introduce new DI container 2019-12-29 20:16:55 +01:00
FollowConfirm.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Followers.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Following.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Friendica.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Group.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Hashtag.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
Help.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Home.php Introduce new DI container 2019-12-29 20:16:55 +01:00
HoverCard.php optimize usage of arguments 2019-12-28 15:28:17 +01:00
Inbox.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Install.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Invite.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Like.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Magic.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Maintenance.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Manifest.php Introduce new DI container 2019-12-29 20:16:55 +01:00
NodeInfo.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Objects.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Oembed.php Introduce new DI container 2019-12-29 20:16:55 +01:00
OpenSearch.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Outbox.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Owa.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
Photo.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Pinned.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Profile.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Proxy.php Introduce new DI container 2019-12-29 20:16:55 +01:00
PublicRSAKey.php Introduce new DI container 2019-12-29 20:16:55 +01:00
README.md fixing text 2019-05-01 20:17:15 +02:00
RandomProfile.php Introduce new DI container 2019-12-29 20:16:55 +01:00
ReallySimpleDiscovery.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Register.php Introduce new DI container 2019-12-29 20:16:55 +01:00
RobotsTxt.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
Smilies.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Starred.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Statistics.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Theme.php Introduce new DI container 2019-12-29 20:16:55 +01:00
ThemeDetails.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
ToggleMobile.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Tos.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Welcome.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Xrd.php Introduce new DI container 2019-12-29 20:16:55 +01:00

README.md

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.