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