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