Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
nupplaPhil 800694e9b3
Remove unused `use` statements & remove PConfig class
1 year ago
..
Admin User lowercase for platform data 1 year ago
Api/Mastodon Update the Introductions domain to use repository, model and collection 1 year ago
Base Replace BaseObject class with DI::* calls 1 year ago
Contact parameters now are having a default value and are optional 1 year ago
Debug Rework Feed::import parameters 1 year ago
Diaspora Creating interfaces for Config/PConfig & fix tests 1 year ago
Filer Remove unused `use` statements & remove PConfig class 1 year ago
HTTPException parameters now are having a default value and are optional 1 year ago
Item Remove unused use statements in Module\Item\Compose 1 year ago
Notifications Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 1 year ago
Profile Remove deprecated App::query_string - replace with DI::args()->getQueryString() 1 year ago
Search Move remaining namespaces and delete Core\Cache.php 1 year ago
Security Remove unused `use` statements & remove PConfig class 1 year ago
Settings Remove unused `use` statements & remove PConfig class 1 year ago
Special Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
WellKnown Fix fatal errors caused by PR 8019 1 year ago
AccountManagementControlDocument.php parameters now are having a default value and are optional 1 year ago
Acctlink.php parameters now are having a default value and are optional 1 year ago
AllFriends.php Replace deprecated $a->page with DI::page() 1 year ago
Apps.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 1 year ago
Attach.php Introduce new DI container 1 year ago
BaseAdminModule.php Replace deprecated $a->page with DI::page() 1 year ago
BaseSearchModule.php Remove get_server() in favor of Search::getGlobalDirectory() 1 year ago
BaseSettingsModule.php Replace deprecated $a->page with DI::page() 1 year ago
Bookmarklet.php Replace deprecated $a->page with DI::page() 1 year ago
Contact.php Merge pull request #8037 from MrPetovan/bug/notices 1 year ago
Credits.php parameters now are having a default value and are optional 1 year ago
Delegation.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 1 year ago
Directory.php Replace deprecated $a->page with DI::page() 1 year ago
Feed.php Introduce new DI container 1 year ago
FollowConfirm.php Update the Introductions domain to use repository, model and collection 1 year ago
Followers.php Introduce new DI container 1 year ago
Following.php Introduce new DI container 1 year ago
Friendica.php Publish lowercase 1 year ago
Group.php Remove unused `use` statements & remove PConfig class 1 year ago
Hashtag.php parameters now are having a default value and are optional 1 year ago
Help.php Replace deprecated $a->page with DI::page() 1 year ago
Home.php Replace deprecated $a->page with DI::page() 1 year ago
HoverCard.php Replace obsolete references to App baseURL and getApp by DI 1 year ago
Inbox.php Introduce new DI container 1 year ago
Install.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 1 year ago
Invite.php Remove unused `use` statements & remove PConfig class 1 year ago
Like.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 1 year ago
Magic.php Fix fatal errors caused by PR 8019 1 year ago
Maintenance.php Refactor dynamic App::getConfig() to static DI::config() 1 year ago
Manifest.php Refactor dynamic App::getConfig() to static DI::config() 1 year ago
NodeInfo.php User lowercase for platform data 1 year ago
Objects.php Add necessary call to BaseUrl->get() in Module\Objects 1 year ago
Oembed.php Introduce new DI container 1 year ago
OpenSearch.php Fix fatal errors caused by PR 8019 1 year ago
Outbox.php Introduce new DI container 1 year ago
Owa.php parameters now are having a default value and are optional 1 year ago
Photo.php Introduce new DI container 1 year ago
Pinned.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 1 year ago
Profile.php Remove unused `use` statements & remove PConfig class 1 year ago
Proxy.php Introduce new DI container 1 year ago
PublicRSAKey.php Introduce new DI container 1 year ago
README.md fixing text 2 years ago
RandomProfile.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 1 year ago
ReallySimpleDiscovery.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 1 year ago
Register.php Remove unused `use` statements & remove PConfig class 1 year ago
RobotsTxt.php parameters now are having a default value and are optional 1 year ago
Smilies.php Introduce new DI container 1 year ago
Starred.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 1 year ago
Statistics.php Refactor dynamic App::getLogger() to static DI::logger() 1 year ago
Theme.php Introduce new DI container 1 year ago
ThemeDetails.php parameters now are having a default value and are optional 1 year ago
ToggleMobile.php Introduce new DI container 1 year ago
Tos.php Correctly capitalize DI::baseUrl in Module\Tos 1 year ago
Welcome.php Refactor dynamic App::getConfig() to static DI::config() 1 year ago
Xrd.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 1 year ago

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.