1
1
Fork 0
Commit graph

266 commits

Author SHA1 Message Date
5879535822
Switch static::$parameters to $this->parameters 2021-11-14 23:49:07 +01:00
489cd0884a
Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
714f0febc4
Replace $parameters argument per method with static::$parameters 2021-11-14 23:49:05 +01:00
018275919c
Create interface for static Module calls 2021-11-14 23:30:04 +01:00
63da4a75e9 The boot.php had been cleared of most functions 2021-11-04 20:29:59 +00:00
516018861e Merge remote-tracking branch 'upstream/develop' into error-handling 2021-10-31 05:25:39 +00:00
4236a9a105 Improved http error handling 2021-10-29 23:21:07 +00:00
58eea1adaa
Cleanup namespaces 2021-10-26 22:11:10 +02:00
b216317477
Refactoring Core class structures ... 2021-10-26 22:11:09 +02:00
ab83d0dd27
Restructure (P)Config to follow new paradigm 2021-10-26 22:11:06 +02:00
68046573a4
Restructure Cache to follow new paradigm 2021-10-26 22:11:06 +02:00
15b93b4459 "getUserNickname" is now "getLoggedInUserNickname" 2021-08-09 19:48:39 +00:00
b8fa75b2dd Changed function name 2021-08-09 15:29:07 +00:00
fc283ab928 Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
3cef3ab107
Merge pull request #10548 from annando/args
Replaced argv/argc with replacement functions
2021-07-26 18:43:47 -04:00
e34795762d
Merge pull request #10544 from annando/router-lock
Lock before recreate / fix cache key misspelling
2021-07-26 03:57:30 -04:00
540ddb9265 Hopefully making the tests to work 2021-07-25 14:27:13 +00:00
2aa2c61479 Lock before recreate / fix cache key misspelling 2021-07-25 04:31:48 +00:00
2502a9192d Many more app-variables removed 2021-07-24 10:09:39 +00:00
8e9433f2e9 Fix: Fetching of non public photos 2021-07-01 18:05:54 +00:00
89608d5844 Set CORS header fields to support Halcyon 2021-06-24 18:02:29 +00:00
ae5f57233e Issue 10392: Avoid "Friendica can't display this page at the moment" 2021-06-16 13:23:07 +00:00
4706d60b04 Added documentation 2021-06-09 07:44:19 +00:00
c9b66d6e28 Deactivate CORS related headers 2021-06-09 07:42:23 +00:00
58a513cb30 Support HTTP OPTIONS requests 2021-06-09 07:27:42 +00:00
6236870aa4 Add all required HTTP methods 2021-05-08 09:14:19 +00:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
6b0df74ed7 Add blocking author from an item context feature 2021-01-23 05:30:03 -05:00
9a6141dcbe Use "pcntl_fork" to fork processes 2021-01-01 19:35:29 +00:00
5fb83d0632 Improved performance profiler 2020-12-09 22:10:27 +00:00
db5cd6e66c API: Mastodon endpoints added as "unimplemented" 2020-11-26 07:02:31 +00:00
06e3294415 Centralize routes file existence check in App\Router 2020-10-15 21:45:51 -04:00
df23690a93 Add routes file recompute on last modification time change 2020-10-15 11:45:15 -04:00
b830c42ec1 Add link to 512px icon, fix missing link 2020-10-03 20:25:10 +02:00
54c895ad3e
Revert "application/xrd+xml" backend content type 2020-10-02 20:14:57 +02:00
19816e8862 Move array into constant 2020-10-02 10:55:42 +00:00
73a7df85f7 Issue 9303: Detect AP accesses as backend, prevent ping pong 2020-10-02 09:31:39 +00:00
3a52179393
Move 'Authentication' to Security namespace 2020-09-30 16:53:18 +02:00
1b681222a4 Ensure query parameters are URL encoded in Arguments
- Simplify Arguments->determine
- Remove stripZRLs and stripQueryParam Arguments methods
- Updated tests
2020-09-12 09:09:16 -04:00
2e286d6a57 Move calendar/event stylesheets/scripts registration to modules
- Add media parameter to Page->registerStylesheet
- Fixes CSS precedence with custom theme stylesheet
2020-08-15 18:56:17 -04:00
1d0cd7328b Add dispatch data caching in App\Router
- Add new cache key "routerDispatchData"
- Update Dice dependencies since Router constructor signature changed
2020-07-27 02:33:08 -04:00
0007da8630 EOL removed 2020-07-23 06:25:01 +00:00
3fc3ded750 Useless info messages removed 2020-07-23 06:11:21 +00:00
cb03418937 Add checks for $a->user existence
- Variable can be empty/null in many cases
2020-07-09 15:09:07 -04:00
nupplaPhil
9eca2c98ed
Add license to src\App namespace 2020-02-08 20:42:47 +01:00
42990ac0f4 Append version parameter to script and stylesheets paths in App\Page 2020-01-31 19:41:20 -05:00
0d1befdf2d Move /profile_photo to Module\Settings\Profile\Photo 2020-01-20 07:27:12 -05:00
f9d0e57f91
Fix tests & Router is now using Dependency Injection instead of DI Registry 2020-01-19 22:38:33 +01:00
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone 2020-01-19 22:23:44 +01:00
cb80108957
Shorten "Configuration" to "Config" again, since the Wrapper is gone 2020-01-19 21:29:36 +01:00
174129af94
add missing namespaces/fix wrong class-names 2020-01-19 16:31:35 +01:00
d6efc90194
cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
2838635d64
Move L10n class from L10n subdir to Core (replacing old wrapper) 2020-01-19 16:31:30 +01:00
5dfee31108
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:16 +01:00
0a4119adaf @brief is removed completely 2020-01-19 06:05:23 +00:00
9e9429b56d
Move PConfig::get() to DI::pConfig()->get() 2020-01-18 16:50:57 +01:00
e38939ee4b Add cookie clear failed validation in App\Authentication 2020-01-08 19:52:44 -05:00
07b4ceecd2
Remove deprecated rdirname() in favor of native dirname() 2020-01-05 00:10:34 +01:00
3f34229752
Move redundant System::baseUrl() to DI::baseUrl() calls 2019-12-30 23:00:08 +01:00
ce50faf780 Update wrong references to ISession::delete 2019-12-29 21:52:56 -05:00
c1dbb25656
Creating interfaces for Config/PConfig & fix tests 2019-12-29 20:18:19 +01:00
4835f1185f
Remove deprecated App::module - replace with DI::module()->getName() 2019-12-29 20:17:52 +01:00
8b6e123b3f
Refactor deprecated App::isAjax() to DI::mode()->isAjax() 2019-12-29 20:17:44 +01:00
8e6973b774
Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
e2b2778e0a
Refactor dynamic App::getLogger() to static DI::logger() 2019-12-29 20:17:41 +01:00
388b963714
Replace BaseObject class with DI::* calls 2019-12-29 20:17:38 +01:00
00756737b5 Merge branch 'master' 2019.12 into develop 2019-12-23 20:03:47 +01:00
a7c617cae2
Fixed:
- needs to be `prvkey`, not `prvKey`

Signed-off-by: Roland Häder <roland@mxchange.org>
2019-12-20 23:15:21 +01:00
be93914c7d Move module post call before rawContent
- This was preventing API POST request to be processed
2019-12-11 08:24:16 -05:00
555513e4b4
Add Session Management instances (including Depenency Injection)
- Prerequesite for mocking Sessions
- Reduce "App" class complexity
2019-12-10 00:44:56 +01:00
94a8a60841
Add more Cookie tests (create new StaticCookie class for mocking setcookie()) 2019-12-09 22:47:08 +01:00
54392fab81
Move Cookie to own class (with tests)
Move Authentication to App namespace
2019-12-08 22:45:34 +01:00
5bb63e59e0
Move App::internalRedirect to BaseUrl::redirect 2019-12-05 23:02:50 +01:00
25194b58b8 Initialize class members in App\Page
- Addresses https://github.com/friendica/friendica/issues/7676#issuecomment-559680658
2019-11-29 11:33:48 -05:00
440d3eb9c4 Simplify Theme::getPathForfile to expand its uses 2019-11-28 12:27:16 -05:00
134d6d18f9 Pass Router parameter to module content method 2019-11-06 22:35:28 -05:00
bd62d548db Added parameters 2019-11-05 20:22:54 +00:00
8720094b52 Pass the parameters from the router to the modules 2019-11-05 05:03:05 +00:00
dca1b8b580 Add URL decoding to query string in App\Arguments
- Slashes were stored url encoded
2019-11-02 07:48:45 -04:00
5dcf6bfc58 Remove extra spaces before closing parentheses in src/ 2019-10-16 08:58:09 -04:00
146646c4d4 Replace deprecated calls to defaults() by ?? and ?: in src/ 2019-10-16 08:38:52 -04:00
4ee9e21a4f Make Router::getModuleClass throw exceptions
- Add new MethodNotAllowedModule
- Add new Module->determineClass catch blocks
- Update Module and Router tests
2019-10-11 19:59:05 -04:00
4a5dfefacc Move theme determination after full module run 2019-10-06 11:18:51 -04:00
Philipp Holzer
0e5cb88888
Add router config
- Introduce route.config.php structure
- Adding config loader for routes
- Adapt Module class (separation of duties)
- Add tests
2019-09-29 11:57:27 +02:00
Philipp Holzer
b13dbb3dcb
Remove $_SERVER['PHP_SELF'] usage 2019-09-17 16:47:00 +02:00
591ba9c68e Display pending contacts in the contact list 2019-09-08 19:18:56 +00:00
Philipp Holzer
90b438e082
Move mode settings to App\Mode
- Move isAjax() to App\Mode
- Move isTablet() to App\Mode
- Move isMobile() to App\Mode
- Refactor last usage of App->isBackend()
2019-08-17 09:09:13 +02:00
Philipp Holzer
30b69f1fc4
some fixings 2019-08-15 20:58:57 +02:00
Philipp Holzer
9f68e6b589
Add Page class for Frontend
- Move frontend logic (stylesheet, footerscript, content) to Page class
2019-08-15 20:52:42 +02:00
Philipp Holzer
08be92a862
Moved BaseURL to App namespace (because similar type as Arguments/Modules/Modes) 2019-08-15 17:23:00 +02:00
Philipp Holzer
cba9fa2467
Move isBackend logic to App\Mode 2019-08-15 15:51:15 +02:00
Philipp Holzer
b1ae58cdc5
fix tests & remove superfluous parameter 2019-08-13 16:29:16 +02:00
Philipp Holzer
4089e17f85
re-add App::isBackend() 2019-08-13 16:29:12 +02:00
Philipp Holzer
0af9747c6c
Add Arguments & Modules class 2019-08-13 16:29:11 +02:00
fcb1a78352
Revert "Introduce Arguments / Module class" 2019-08-11 18:01:11 -04:00
Philipp Holzer
11752d7059
move backend constant 2019-08-11 14:33:25 +02:00
Philipp Holzer
2c5ba7fc15
Introduce Arguments / Module class
- move from App
- add tests for Arguments/Module class
2019-08-11 14:24:05 +02:00
c24ca57f21 Add frio-specific /compose module 2019-07-29 20:31:46 -04:00
1a164b0dc5 Add two-factor app-specific password settings page
- Add two-factor app-specific model
- Add link to new page from 2fa settings index page
2019-07-22 07:56:00 -04:00
Philipp Holzer
05102911db
Fix App\Mode determination 2019-07-21 14:40:50 +02:00