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 88bb66371c
Move PConfig::set() to DI::pConfig()->set()
2 years ago
..
Admin User lowercase for platform data 2 years ago
Api/Mastodon Update the Introductions domain to use repository, model and collection 2 years ago
Base Replace BaseObject class with DI::* calls 2 years ago
Contact parameters now are having a default value and are optional 2 years ago
Debug Rework Feed::import parameters 2 years ago
Diaspora Creating interfaces for Config/PConfig & fix tests 2 years ago
Filer Move PConfig::get() to DI::pConfig()->get() 2 years ago
HTTPException parameters now are having a default value and are optional 2 years ago
Item Remove unused use statements in Module\Item\Compose 2 years ago
Notifications Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2 years ago
Profile Remove deprecated App::query_string - replace with DI::args()->getQueryString() 2 years ago
Search Move remaining namespaces and delete Core\Cache.php 2 years ago
Security Move PConfig::get() to DI::pConfig()->get() 2 years ago
Settings Move PConfig::set() to DI::pConfig()->set() 2 years ago
Special Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
WellKnown Fix fatal errors caused by PR 8019 2 years ago
AccountManagementControlDocument.php parameters now are having a default value and are optional 2 years ago
Acctlink.php parameters now are having a default value and are optional 2 years ago
AllFriends.php Replace deprecated $a->page with DI::page() 2 years ago
Apps.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2 years ago
Attach.php Introduce new DI container 2 years ago
BaseAdminModule.php Replace deprecated $a->page with DI::page() 2 years ago
BaseSearchModule.php Remove get_server() in favor of Search::getGlobalDirectory() 2 years ago
BaseSettingsModule.php Replace deprecated $a->page with DI::page() 2 years ago
Bookmarklet.php Replace deprecated $a->page with DI::page() 2 years ago
Contact.php Merge pull request #8037 from MrPetovan/bug/notices 2 years ago
Credits.php parameters now are having a default value and are optional 2 years ago
Delegation.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2 years ago
Directory.php Replace deprecated $a->page with DI::page() 2 years ago
Feed.php Introduce new DI container 2 years ago
FollowConfirm.php Update the Introductions domain to use repository, model and collection 2 years ago
Followers.php Introduce new DI container 2 years ago
Following.php Introduce new DI container 2 years ago
Friendica.php Publish lowercase 2 years ago
Group.php Move PConfig::get() to DI::pConfig()->get() 2 years ago
Hashtag.php parameters now are having a default value and are optional 2 years ago
Help.php Replace deprecated $a->page with DI::page() 2 years ago
Home.php Replace deprecated $a->page with DI::page() 2 years ago
HoverCard.php Replace obsolete references to App baseURL and getApp by DI 2 years ago
Inbox.php Introduce new DI container 2 years ago
Install.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2 years ago
Invite.php Move PConfig::set() to DI::pConfig()->set() 2 years ago
Like.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2 years ago
Magic.php Fix fatal errors caused by PR 8019 2 years ago
Maintenance.php Refactor dynamic App::getConfig() to static DI::config() 2 years ago
Manifest.php Refactor dynamic App::getConfig() to static DI::config() 2 years ago
NodeInfo.php User lowercase for platform data 2 years ago
Objects.php Add necessary call to BaseUrl->get() in Module\Objects 2 years ago
Oembed.php Introduce new DI container 2 years ago
OpenSearch.php Fix fatal errors caused by PR 8019 2 years ago
Outbox.php Introduce new DI container 2 years ago
Owa.php parameters now are having a default value and are optional 2 years ago
Photo.php Introduce new DI container 2 years ago
Pinned.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2 years ago
Profile.php Move PConfig::get() to DI::pConfig()->get() 2 years ago
Proxy.php Introduce new DI container 2 years ago
PublicRSAKey.php Introduce new DI container 2 years ago
README.md fixing text 3 years ago
RandomProfile.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2 years ago
ReallySimpleDiscovery.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2 years ago
Register.php Move PConfig::set() to DI::pConfig()->set() 2 years ago
RobotsTxt.php parameters now are having a default value and are optional 2 years ago
Smilies.php Introduce new DI container 2 years ago
Starred.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2 years ago
Statistics.php Refactor dynamic App::getLogger() to static DI::logger() 2 years ago
Theme.php Introduce new DI container 2 years ago
ThemeDetails.php parameters now are having a default value and are optional 2 years ago
ToggleMobile.php Introduce new DI container 2 years ago
Tos.php Correctly capitalize DI::baseUrl in Module\Tos 2 years ago
Welcome.php Refactor dynamic App::getConfig() to static DI::config() 2 years ago
Xrd.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2 years 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.