Commit graph

1295 commits

Author SHA1 Message Date
Matthew Exon
ba4492ea81 Add console contact command 2021-05-03 18:00:36 +02:00
Philipp
d1d5cb2857
Fixed new "user config" console feature
- Replaced "DI::" call with constructor injection
- Added return value for IPConfig::load() and PreloadPConfig::load()
2021-04-28 22:13:00 +02:00
Matthew Exon
5421f53a76 Add "user config" console command to administer user-specific configuration 2021-04-27 19:46:16 +02:00
Tobias Diekershoff
2a431b580f Merge branch 'develop' of https://github.com/friendica/friendica into develop 2021-04-26 09:49:48 +02:00
Philipp
f10c24c83a
remove warning 2021-04-17 13:24:37 +02:00
Philipp
6a414b0543
Fix L10n in case of empty strings array 2021-04-17 13:24:37 +02:00
Hypolite Petovan
d666b6cb42
Merge pull request #10116 from mexon/mat/addon-console-command
Add "addon" console command to enable and disable addons
2021-04-02 14:34:23 -04:00
Matthew Exon
3545e9cfa8 Add "addon" console command to enable and disable addons 2021-04-02 18:56:24 +02:00
Balázs Úr
befc2af504
Merge branch '2021.03-rc' into copyright-2021 2021-03-29 08:45:21 +02:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Philipp
b2a7c5ff6c
Fix JIT Config Adapter caching 2021-03-28 23:28:47 +02:00
Philipp
26bd1bb26d
FollowUp #10086 2021-03-27 22:42:11 +01:00
Philipp
3327e6d979
Add EOL to help string 2021-03-27 13:59:32 +01:00
Philipp
a831242095
Workaround for cURL troubles in container environments
Addresses https://github.com/friendica/docker/issues/134
2021-03-27 13:52:05 +01:00
Michael
adb0b460ef Fixes PHP Warning: " array_unshift() expects parameter 1 to be array, int given" 2021-03-24 19:52:53 +00:00
fabrixxm
a861eb65af Storage: small fixes to 'storage move'
- stop command if current storage backend is still "legacy"
- write destination backend name in log
2021-03-12 18:24:45 +01:00
utzer
e20e62ffd6
Part of bugfix for storage move problem
@fabrixxm is this already good to change?
2021-03-12 09:55:55 +01:00
Michael
d2c734c025 Issue 9986: Improve contact search 2021-03-06 21:52:26 +00:00
Michael
99a145f7cf Fixes several database errors, removes "relation" handling 2021-02-25 05:13:49 +00:00
Tobias Diekershoff
beccd12a2b Issue 9064: referring INSTALL.txt now points to doc/INSTALL.md 2021-02-23 09:57:33 +01:00
Michael
312c01a517 Several speed improvements (magiclink, caching, indexes) 2021-02-17 18:59:19 +00:00
Michael
6e1483545e Support for message delivering via uri-id 2021-02-14 14:24:48 +00:00
Michael
c3398511b4 New table "post-content" 2021-01-30 22:03:53 +00:00
Michael
8eb3bddc2a Reduce the parameter chaos by splitting the update function 2021-01-30 13:31:59 +00:00
Michael
90f1175cf5 Setting "maintenance" for pre and post updates 2021-01-30 07:50:20 +00:00
Hypolite Petovan
9a9b43bd6c Fix wrong uses of DI::l10n() in Core\Update
- Fix typos in version number in translated messages
2021-01-21 10:36:52 -05:00
Michael
4157db5473 "item" is replaced by "post-view" / postupdate check added 2021-01-17 20:32:13 +00:00
Michael
df135c31fe Merge remote-tracking branch 'upstream/develop' into no-frontend-worker 2021-01-07 10:44:12 +00:00
Michael
594b1a75b5 Use the correct pid 2021-01-05 21:48:29 +00:00
Michael
6ef0f9646f Set the new pid 2021-01-05 21:39:53 +00:00
Michael
2f8e873cc7 Wait for parent 2021-01-05 16:47:55 +00:00
Michael
17fbe5c299 Delete IPC entries 2021-01-05 16:01:05 +00:00
Michael
7e89bf5af8 Wait for child being ready 2021-01-05 10:18:25 +00:00
Michael
69c7e9af20 Let the worker run for an hour in daemon mode 2021-01-04 09:20:44 +00:00
Michael
74d7d7e164 Check for childf status 2021-01-03 22:57:25 +00:00
Michael
d70d180e4b Merge remote-tracking branch 'upstream/2020.12-rc' into fork 2021-01-03 10:06:17 +00:00
Michael
10b035b51a Additional worker cooldown 2021-01-02 19:33:50 +00:00
Michael
7a03b72060 Improved daemon test 2021-01-02 08:43:55 +00:00
Michael
78f67c1e0e Check for reaching the memory limit 2021-01-01 23:10:38 +00:00
Michael
a81ac835a1 The frontend worker is removed 2021-01-01 23:05:26 +00:00
Michael
9a6141dcbe Use "pcntl_fork" to fork processes 2021-01-01 19:35:29 +00:00
Michael
5dcc02594c Some more log levels 2020-12-31 20:44:33 +00:00
Michael
d1ea529cfb Issue 9704: Improved log levels 2020-12-31 20:14:13 +00:00
Hypolite Petovan
5f148dcb42 Add temporary console command to fix workerqueue row with corrupted parameter data
- It should be reverted just before the 2020.12 release
2020-12-15 00:20:49 -05:00
Michael Vogel
33930b0bd9
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-12-09 06:58:19 +01:00
Michael
dd94fb1242 Check for bad worker priorities 2020-12-08 21:58:32 +00:00
Michael
edbdfbae6b workerqueue now has a "command" field 2020-12-03 15:47:50 +00:00
Michael
3f3f56db57 Poll interval function moved to feed class, first steps for delayed posts 2020-11-30 05:39:12 +00:00
Michael
818c064c0a The notifications parameters are now simplified 2020-11-25 19:56:39 +00:00
Hypolite Petovan
ca823244cc Don't assume addons must have an *_install function
- Module-only addons don't have any
2020-11-21 23:19:03 -05:00
Michael
aec9f1ebf0 Remove unused config variable 2020-11-21 15:15:58 +00:00
Michael
1de6251627 Code cleaning 2020-11-21 14:58:48 +00:00
Michael Vogel
b40218eb0b Immediately fail when lock hadn't been acquired to prevent stocked updates 2020-11-21 14:17:14 +01:00
Michael Vogel
2a1c82cf05 Avoid multiple database update mails, changed log level 2020-11-21 13:28:06 +01:00
Michael
1bc76fdb6d Watchdog mode to check if the daemon is running 2020-11-20 19:50:08 +00:00
Michael
0edc058a17 Ensure that the daemon is called faster and more reliably 2020-11-18 13:29:10 +00:00
Michael
4965d6aa54 The profile page does now shows reshared items 2020-11-03 19:24:47 +00:00
Michael
fd0e5cfe48 Added logging for executing child processes 2020-10-24 18:40:15 +00:00
Michael
592ac53ffc Worker priority / no shadow worker 2020-10-24 08:05:03 +00:00
Philipp
a6fc9cd32e
Remove $binary flag for HTTPRequest::get(), HTTPRequest::fetch(), HTTPRequest::fetchAll() (deprecated since PHP 5.1.3) 2020-10-18 20:56:31 +02:00
Michael Vogel
2c0db7546b
Update src/Core/Worker.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-10-17 15:54:52 +02:00
Michael
7efd01880c Define a maintenance window 2020-10-17 12:39:42 +00:00
Hypolite Petovan
9537a6d0f7 Remove unused App->force_max_items property 2020-10-13 07:52:13 -04:00
Philipp
d39ee428f0
Introduce "static/env.config.php" for environment variable mapping to config cache entries
- Added new database.port config value (used for MYSQL_PORT)
- Removed now obsolete db environment variable functionality
- Added functionality to load env variables (overwrites DB based cached)
2020-10-06 20:43:29 +02:00
Philipp
0f3e4255ca
Introduce Config\Cache Source indicators (File, DB, Server Env) 2020-10-04 20:41:31 +02:00
Hypolite Petovan
a852455d0e Merge remote-tracking branch 'friendica/stable' into develop
# Conflicts:
#	composer.lock
2020-09-20 15:32:58 -04:00
Philipp
c9e510d4fd
Use getmypid() as dependency (improve testing) 2020-09-19 20:28:01 +02:00
Michael
c36bfcf17d Changed loglevels in the worker 2020-09-17 17:57:41 +00:00
Michael Vogel
0fe2146338
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-09-17 06:33:31 +02:00
Michael
178455928a We can now manage relay servers and can send content to them 2020-09-15 17:45:19 +00:00
Philipp
cdb61be06f
Rewrite Process Model/Core 2020-09-15 18:16:44 +02:00
Hypolite Petovan
043e04f484 Remove confirm template obsolete uses (except for contacts)
- Remove obsolete explode_querystring() function
- Remove $extra_inputs template variable
2020-09-12 09:09:15 -04:00
Hypolite Petovan
5f5b97dad6 Create self-only ACL template and helper method 2020-09-07 19:27:32 -04:00
Hypolite Petovan
4a4d0f04cb Fix new private message recipient input
- Add new private message recipient ACL template
- Remove now redundant theme private message templates
2020-09-03 10:01:58 -04:00
Hypolite Petovan
a844fd8f58 Move ACL full selector template to subfolder
- Fix display overflow in contact complete suggestion box
2020-09-03 10:00:20 -04:00
Michael
31638d4742 Added and improved logging for the update process 2020-08-30 18:57:09 +00:00
Tobias Diekershoff
e402026b83 refert to doc/INSTALL.md instead of README.txt in the installer 2020-08-30 10:12:42 +02:00
Michael
d8d2cdc6ef Only c heck every 5 seconds for the system health 2020-08-29 13:01:58 +00:00
Michael
8148d9dc9d Unclaim on end / don't refetch 2020-08-29 11:26:40 +00:00
Michael
069786cd7f Simplified the code 2020-08-29 10:44:38 +00:00
Michael
f9152ce140 Worker: Fetch jobs for multiple workers 2020-08-29 09:03:50 +00:00
Michael
98dd15ec9a Adding a cooldown phase for the daemon 2020-08-19 18:21:40 +00:00
Michael Vogel
b5cca1ab93 Some small performance tweaks (indexes) 2020-08-18 12:50:18 +02:00
Hypolite Petovan
7019e02f61 Fix unexpected return value of RedisCache->delete()
- Address https://github.com/friendica/friendica/issues/8876#issuecomment-671025374
2020-08-09 10:45:06 -04:00
Hypolite Petovan
bc02ad89d0 Add support for empty session write
- Ignored empty data left session intact, leading to unexpected behaviors
2020-08-07 22:50:16 -04:00
Hypolite Petovan
b3dcecf987 Revert "Actually destroy session on logout"
This reverts commit 077b57ecb3.
2020-08-07 22:49:48 -04:00
Hypolite Petovan
077b57ecb3 Actually destroy session on logout 2020-08-06 22:59:09 -04:00
Michael
f09d9bc9cc Remove url caching, locking cleanup 2020-08-06 18:53:45 +00:00
Hypolite Petovan
470079c37c Improve documentation of visitor-related functions 2020-08-04 22:44:42 -04:00
Michael
a7d75702cc "Contact\User" class created 2020-08-04 04:47:02 +00:00
Michael
cc85bc4156 Replace "gcontact" with "contact" - imroved suggestions 2020-07-30 14:08:32 +00:00
Michael Vogel
74bc3de472
Merge pull request #8931 from MrPetovan/task/2020-performance-improvements
Various performance improvements
2020-07-28 07:15:02 +02:00
Hypolite Petovan
cd84f9a921 Reduce number of calls to Hook::delete when uninstalling addons/themes
- Add a sweeping Hook deletion on theme uninstall (like for addons)
2020-07-27 08:24:55 -04:00
Michael
fd1da74980 Fix fatal error because of unknown function "fetchUrl" 2020-07-27 11:50:36 +00:00
Hypolite Petovan
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
Hypolite Petovan
bd1f4ebbde Refactor Hook and Addon to systematically use Hook::delete 2020-07-27 02:33:08 -04:00
Hypolite Petovan
afb882048e Generate callstack value from inside Profiler::saveTimestamp
- Save a massive amount of time computing callstacks when profiling is disabled
2020-07-27 02:33:05 -04:00
Hypolite Petovan
19141b1bcf Add offset parameter to System::callstack
- Enable its use in centralized methods without polluting the stack
2020-07-27 02:31:42 -04:00
Michael Vogel
398e65d66b
Merge pull request #8911 from MrPetovan/task/curl_DI
Introduce "HTTPRequest" class
2020-07-25 09:50:20 +02:00
Michael
3fc3ded750 Useless info messages removed 2020-07-23 06:11:21 +00:00
nupplaPhil
1124090dbc Cleanup dependencies 2020-07-21 03:19:04 -04:00
nupplaPhil
657d08f09f Rename "fetchUrl" and "fetchUrlFull" to "fetch" and "fetchFull" 2020-07-21 03:15:53 -04:00
nupplaPhil
7029012f27 Rename "HTTPRequest::curl()" to HTTPRequest::get() 2020-07-21 03:14:01 -04:00
nupplaPhil
1aa07f87a4 Make "HTTPRequest::fetchUrl" dynamic 2020-07-21 03:04:58 -04:00
nupplaPhil
3b4cf87c95 Make "HTTPRequest::fetchUrlFull" dynamic 2020-07-21 03:02:52 -04:00
nupplaPhil
2973ed6448 Make "HTTPRequest::curl" dynamic 2020-07-21 03:01:12 -04:00
nupplaPhil
5344efef71 Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest" 2020-07-21 02:56:10 -04:00
Michael
5bf813d0ec Use "failed" field 2020-07-19 11:42:23 +00:00
Michael
70699878ee Replaced more calls of "Probe::uri" with "Contact::getByURL" 2020-07-16 19:22:38 +00:00
Michael
b8682190de Fix fallback on unknown contact 2020-07-16 04:18:33 +00:00
Hypolite Petovan
631095eefd
Merge pull request #8883 from annando/replace-getdetails
Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
2020-07-15 13:49:27 -04:00
Michael
6d3949d54a Changed default value 2020-07-15 17:29:52 +00:00
Michael
e374aecc46 Changed parameter order for "getbyURLForUser" 2020-07-15 17:22:12 +00:00
Michael
d9c6a46ffe Replaced "getDetailsByURL" with "getByURL/getByURLForUser" 2020-07-15 04:42:04 +00:00
Hypolite Petovan
059087f998 Suppress all emails when Update::run is ran with $sendEmail = false
- Address Renderer crash in the App-less context of Console
2020-07-13 17:22:21 -04:00
Michael
bbb2f1fcf5 Use "0" as default 2020-07-13 16:24:44 +00:00
Michael
5a6887fb2e Use "jsonexit" 2020-07-13 13:26:09 +00:00
Michael
fcb37449f3 Fix unneeded database functions in the callstack 2020-07-10 07:01:28 +00:00
Hypolite Petovan
20a4799902 Update references to the friendica/friendica-directory stable branch 2020-06-30 15:25:17 -04:00
Hypolite Petovan
9c6fbc6a74 Update references to the friendica/friendica stable branch 2020-06-30 15:25:16 -04:00
Hypolite Petovan
779099a491 Improve language of console globalcommunitysilence help line 2020-06-03 00:03:58 -04:00
Michael
e374e5752a Changed deprecated log calls 2020-06-01 13:51:58 +00:00
Michael Vogel
e315bc3eae
Merge pull request #8657 from MrPetovan/bug/8653-catch-template-engine-errors
Catch template engine errors
2020-05-19 00:22:45 +02:00
Hypolite Petovan
8b05af176c Add detailed error messages for admin user in Core\Renderer and Render\FriendicaSmartyEngine 2020-05-18 18:10:21 -04:00
Hypolite Petovan
64e89a516d Restore default parameter value in Core\Renderer::replaceMacros 2020-05-18 10:01:51 -04:00
Hypolite Petovan
ef9b51e631 Replace direct error output and exit by logger + exception in Core\Renderer
- Same in Render\FriendicaSmartyEngine
2020-05-18 01:21:58 -04:00
Hypolite Petovan
c6ba92c43d Refactor template engine code
- Convert ITemplateEngine interface to abstract class
- Remove dependency to App in FriendicaSmarty and FriendicaSmartyEngine
- Normalize replaceMacro parameter behavior using Smarty template string prefixes
- Remove obsolete FriendicaSmarty->parsed method
- Update unused Smarty directory paths
2020-05-18 01:18:41 -04:00
Michael
a3c4021f12 Issue 8514: Make paging for searcg items work again
Fixes #8514
2020-05-17 13:51:56 +00:00
Michael
6f3b46217e Fix for "Undefined index: profile_url" 2020-04-28 19:36:10 +00:00
Michael
9ccdbd9349 Added forgotten DBA::close 2020-04-28 05:55:17 +00:00
Hypolite Petovan
1b0a8ec5c0
Merge pull request #8545 from nupplaphil/bug/subdir
Template Engine with Subdirectory
2020-04-26 14:31:30 -04:00
Philipp
f5f62d3f42
Template Engine with Subdirectory
- Use explicit root path for template engine
- Replace "__DIR__" calls in addons with subdirectories
- Fixes local tests, where call is made out of '/' and not '/vagrant/'
2020-04-26 15:45:25 +02:00
Michael
1c980c5b29 The workerqueue is now using a view as well 2020-04-24 18:50:36 +00:00
Michael
d4480ae4be Simplified code 2020-03-10 13:13:43 +00:00
Michael
8e421f0893 Fix uninstall of installed addons 2020-03-09 23:28:37 +00:00
Hypolite Petovan
39a87b1f54 Add check for semi-colon existence in theme file comment lines
- Address https://github.com/friendica/friendica/issues/8000#issuecomment-592946450
2020-03-01 14:19:46 -05:00
nupplaPhil
f3f764bc39
Add new possibility to add a user per console 2020-02-29 17:10:27 +01:00
nupplaPhil
4d436c10df
Move "NewPassword" to a common "user" console command 2020-02-29 17:10:26 +01:00
Michael
1b87a97a81 Remove "hidewall" check from ACL 2020-02-22 08:54:28 +00:00
Hypolite Petovan
1a8110234f Move /settings/display module to src/ 2020-02-20 05:37:06 -05:00
Michael Vogel
b6b567fc97
Merge pull request #8315 from MrPetovan/task/8310-improve-manifest
Update manifest output with config/theme info
2020-02-20 09:34:36 +01:00
Michael
7ee9aad6ca Some more unneeded settings removed 2020-02-19 19:31:55 +00:00
Hypolite Petovan
b9325251e8 Add Theme::getBackgroundColor and Theme::getThemeColor methods 2020-02-19 10:28:57 -05:00
Hypolite Petovan
5d169a4098 Add System::htmlUpdateExit() method to refactor update modules 2020-02-16 04:32:56 -05:00
nupplaPhil
23c64b9a11
Add license info at Friendica classes 2020-02-09 15:45:36 +01:00
nupplaPhil
0b94b84dc7
simplify mail creation 2020-02-04 21:05:33 +01:00
nupplaPhil
262c94f12f
Fix indents 2020-02-02 22:43:43 +01:00
nupplaPhil
ed9756225d
improvements 2020-02-02 22:43:42 +01:00
nupplaPhil
97e708f2e2
Remove DI::app() dependency again 2020-02-02 22:43:41 +01:00
nupplaPhil
9428466d1d
Set Sitename / site email as sender for system emails 2020-02-02 22:43:39 +01:00
nupplaPhil
3291728059
Extract System emails from enotify
- Removed every SYSTEM_EMAIL occurrence in enotify
- Introduced a "SystemMailBuilder" for build system emails
- Replaced every SYSTEM_EMAIL usage in the classes with calling this builder
- Added tests for this new Builder
- Split the email templates between "base" template for email and concrete usages for different use cases
2020-02-02 22:43:35 +01:00
nupplaPhil
d4e836855b
Remove deprecated code 2020-02-01 00:05:27 +01:00
Hypolite Petovan
b03796957b Improve logging in mod/item
- Set legacy Logger constants as deprecated
2020-01-29 22:42:49 -05:00
Hypolite Petovan
451596f5b3 Rename migration method for clarity in Repository\ProfileField 2020-01-23 14:00:42 -05:00
Hypolite Petovan
e8bf74914b Update user import/export with profile fields
- Account for backward compatibility when exporting: add values for profile.is-default and profile.profile-name fields
- Account for forward compatibility when importing: migrate legacy profiles to custom profile fields
2020-01-22 19:42:37 -05:00
Hypolite Petovan
1c50bc58e4 Move Permission Set over to DDD
- Add Permission Set Repository, Model and Collection
- Mark static PermissionSet method as deprecated
2020-01-20 07:35:05 -05:00
Hypolite Petovan
f0474c07ce Add "Yourself" ACL choice and allow multiple ACL selectors on a single page 2020-01-20 07:32:48 -05:00
Hypolite Petovan
f97a358a9b Normalize the return value type of Session::getRemoteContactID 2020-01-20 07:32:46 -05:00
Hypolite Petovan
04d620fc2f
Merge pull request #8142 from nupplaphil/task/di_config
CleanUp Config namespace
2020-01-19 22:22:57 -05:00
nupplaPhil
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone 2020-01-19 22:23:44 +01:00
Michael
dcbd44ab88 Removed the rest of the @brief fields 2020-01-19 20:44:01 +00:00
nupplaPhil
cb80108957
Shorten "Configuration" to "Config" again, since the Wrapper is gone 2020-01-19 21:29:36 +01:00
nupplaPhil
2204016071
Delete Core\Config 2020-01-19 21:23:00 +01:00
nupplaPhil
a6a2efa18a
Move Config::delete() to DI::config()->delete() 2020-01-19 21:22:33 +01:00
nupplaPhil
3411ced833
Move Config::set() to DI::config()->set() 2020-01-19 21:21:53 +01:00
nupplaPhil
6c36fd9e01
Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
nupplaPhil
5d294e8be8
Move Config::load() to DI::config()->load() 2020-01-19 21:20:10 +01:00
nupplaPhil
8138b05032
fix L10n path after move 2020-01-19 17:11:48 +01:00
nupplaPhil
174129af94
add missing namespaces/fix wrong class-names 2020-01-19 16:31:35 +01:00
nupplaPhil
0e6a675cb5
cleanups 2020-01-19 16:31:33 +01:00
nupplaPhil
2838635d64
Move L10n class from L10n subdir to Core (replacing old wrapper) 2020-01-19 16:31:30 +01:00
nupplaPhil
d3255afa66
Move L10n::withLang() calls to DI::l10n()->withLang() calls 2020-01-19 16:31:18 +01:00
nupplaPhil
a9a36fb302
Move L10n::tt() calls to DI::l10n()->tt() calls 2020-01-19 16:31:17 +01:00
nupplaPhil
5dfee31108
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:16 +01:00
Michael
cdbc94a9e1 Some more added lines 2020-01-19 09:51:37 +00:00
Michael
0a4119adaf @brief is removed completely 2020-01-19 06:05:23 +00:00
Hypolite Petovan
8536b313a1
Merge pull request #8131 from nupplaphil/task/cleanup_lock
CleanUp Lock namespace
2020-01-18 14:13:14 -05:00
nupplaPhil
41ff43dcdd
CleanUp Lock namespace
- introduce enum Lock - "Type"
- Move Lock/Lock to BaseLock
2020-01-18 20:15:46 +01:00
Hypolite Petovan
58f69481e6
Merge pull request #8130 from nupplaphil/task/di_pconfig
Move PConfig to DI::pConfig()
2020-01-18 13:57:57 -05:00
nupplaPhil
800694e9b3
Remove unused use statements & remove PConfig class 2020-01-18 17:02:59 +01:00
nupplaPhil
b5c0df439f
Move PConfig::delete() to DI::pConfig()->delete() 2020-01-18 16:56:46 +01:00
nupplaPhil
88bb66371c
Move PConfig::set() to DI::pConfig()->set() 2020-01-18 16:54:50 +01:00
nupplaPhil
9e9429b56d
Move PConfig::get() to DI::pConfig()->get() 2020-01-18 16:50:57 +01:00
nupplaPhil
6e2880c679
Move PConfig::load() to DI::pConfig()->load() 2020-01-18 15:59:01 +01:00
nupplaPhil
424c87195b
CleanUp Cache namespace
- Introduce enum "Duration"
- Introduce enum "Type"
- Move "Cache\Cache" to "BaseCache"
2020-01-18 15:41:19 +01:00
nupplaPhil
ca8ca05051
Add legacy backend storage functionality 2020-01-17 23:55:19 +01:00
nupplaPhil
732992a296
Improve impossible exception-handler for storage move 2020-01-17 23:55:18 +01:00
nupplaPhil
0af83e6f7c
Rename bool flag for user backend 2020-01-17 23:55:08 +01:00
nupplaPhil
9bb5891645
Fix loading SystemResource files 2020-01-17 19:31:34 +01:00
Hypolite Petovan
36190d1e79
Merge pull request #8072 from nupplaphil/task/Cache_to_DI
Replace Core\Cache wrapper with DI::cache() method
2020-01-10 08:46:03 -05:00
nupplaPhil
bfae6766bf
Implement Hook::callAll('storage_instance') call for addons and add a description for it.
- Remove implicit Dice usage
- Add concrete instance creating
- Adding Hook call for addon instance creating
- Updating doc for Hook
- Updating tests
2020-01-10 13:22:03 +01:00
nupplaPhil
dbd5b5bb6e
- Fixing SystemResource
- Adding tests for StorageManager
- Updating doc
2020-01-10 13:21:58 +01:00
nupplaPhil
08edeae2f9
Make Storage testable & add tests
- Making StorageManager dynamic (DI::facStorage())
- Making concrete Storage dynamic (DI::storage())
- Add tests for Storage backend and failure handling
- Bumping Level-2/Dice to "dev-master" until new release
- Using Storage-Names instead of Storage-Classes in config (includes migration)
2020-01-10 13:21:57 +01:00
nupplaPhil
a38b0f7eaf
Move remaining namespaces and delete Core\Cache.php 2020-01-07 00:51:02 +01:00
nupplaPhil
fe078410a1
Move Cache::get() to DI::cache()->get() 2020-01-07 00:45:49 +01:00
nupplaPhil
f68929633b
Move Cache::set() to DI::cache()->set() 2020-01-07 00:41:20 +01:00
nupplaPhil
3369dfaad9
Remove unused function Cache::delete() 2020-01-07 00:37:01 +01:00
nupplaPhil
182f390520
Move Cache::clear() to DI::cache()->clear() 2020-01-07 00:36:07 +01:00
nupplaPhil
f7ca437ba6
Remove unused method Cache::getAllKeys() 2020-01-07 00:36:06 +01:00
nupplaPhil
31457b8566
Replace Lock::release() with DI::lock()->release() and remove Core\Lock 2020-01-07 00:24:10 +01:00
nupplaPhil
634e657d23
Replace Lock::acquire() with DI::lock()->acquire() 2020-01-07 00:20:31 +01:00
Hypolite Petovan
64c8855407 Allow special groups in default user permissions
- Use ACLFormatter in ACL::getDefaultUserPermissions
- Remove ACL::fixACL
- Add return value to Contact::pruneUnavailable
2020-01-05 17:09:14 -05:00
Hypolite Petovan
393a671501
Merge pull request #8055 from nupplaphil/task/remove_get_server
Remove get_server() in favor of Search::getGlobalDirectory()
2020-01-04 20:10:50 -05:00
nupplaPhil
48baa0be4b
Remove get_server() in favor of Search::getGlobalDirectory() 2020-01-05 00:04:55 +01:00
nupplaPhil
244f440d97
Remove unused killme() 2020-01-04 23:43:13 +01:00
nupplaPhil
f0eea6f875
Remove get_app() in favor of DI::app() 2020-01-04 23:42:01 +01:00
Michael
fb550a0172 Relocated functions from PortableContact to GServer 2020-01-01 21:29:36 +00:00
nupplaPhil
e2dc1d7477
Remove deprecated call 2019-12-30 23:08:06 +01:00
nupplaPhil
3f34229752
Move redundant System::baseUrl() to DI::baseUrl() calls 2019-12-30 23:00:08 +01:00
Hypolite Petovan
6f199ab7b3
Add missing return statement in Core\L10n
- Addresses https://github.com/friendica/friendica/issues/7998#issuecomment-569560492
2019-12-29 22:47:32 -05:00
nupplaPhil
c1dbb25656
Creating interfaces for Config/PConfig & fix tests 2019-12-29 20:18:19 +01:00
nupplaPhil
4835f1185f
Remove deprecated App::module - replace with DI::module()->getName() 2019-12-29 20:17:52 +01:00
nupplaPhil
e944d7bed6
Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
nupplaPhil
50be94aa5e
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName() 2019-12-29 20:17:47 +01:00
nupplaPhil
e93fba5136
Remove deprecated App::removeBaseURL - process methods to DI::baseUrl()->remove() 2019-12-29 20:17:45 +01:00
nupplaPhil
5609e94b05
Refactor deprecated App - process methods to DI::process()->*() 2019-12-29 20:17:45 +01:00
nupplaPhil
8e6973b774
Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
nupplaPhil
9cec293ccc
Refactor dynamic App::getMode() to static DI::mode() 2019-12-29 20:17:42 +01:00
nupplaPhil
181529f3df
Refactor dynamic App::getProfiler() to static DI::profiler() 2019-12-29 20:17:42 +01:00
nupplaPhil
e2b2778e0a
Refactor dynamic App::getLogger() to static DI::logger() 2019-12-29 20:17:41 +01:00
nupplaPhil
fceb4f3823
Refactor dynamic App::getConfig() to static DI::config() 2019-12-29 20:17:40 +01:00
nupplaPhil
388b963714
Replace BaseObject class with DI::* calls 2019-12-29 20:17:38 +01:00
nupplaPhil
1de3f186d7
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class
2019-12-29 20:16:55 +01:00
Hypolite Petovan
a9220aa83b
Merge pull request #8026 from nupplaphil/task/l10n_immutable
Make L10n immutable
2019-12-29 13:54:32 -05:00
nupplaPhil
71a38180e9
Check for same language 2019-12-29 16:39:25 +01:00
nupplaPhil
673c4537e4
Session - Remove unneeded cookie parameter 2019-12-29 00:03:58 +01:00
nupplaPhil
7a2f4dc54e
Make L10n immutable
- Remove Push/Pop
- Add "withLang($lang)" method
2019-12-28 23:12:01 +01:00
Hypolite Petovan
94954c810b
Merge pull request #7996 from annando/poco-cleanup
The PoCo-Workers had been split
2019-12-24 05:13:36 -05:00
Tobias Diekershoff
00756737b5 Merge branch 'master' 2019.12 into develop 2019-12-23 20:03:47 +01:00
Michael
37f0519514 'SearchDirectory' created (moved out of 'DiscoverPoco' mess) 2019-12-20 20:30:13 +00:00
Hypolite Petovan
77e00f11a7 Add type-hint to debug null value fatal error
- Part of https://github.com/friendica/friendica/issues/7675#issuecomment-566076500
2019-12-16 11:05:08 -05:00
Hypolite Petovan
6e4a428c73
Merge pull request #7907 from nupplaphil/task/reduce_app_deps
Cleanup Session/Authentication
2019-12-14 09:53:40 -05:00
Hypolite Petovan
fe5b80b9ba Return early if user.uid isn't present in ACL::getFullSelectorHTML
- Addresses https://github.com/friendica/friendica/issues/7675#issuecomment-565533824
2019-12-13 13:29:18 -05:00
nupplaPhil
1408908c84
Refactor Session Handling (make it more simple & handler are now handler again) 2019-12-11 20:30:31 +01:00
nupplaPhil
02c40ad1cb
Overwrite constructor of Memory session handling so no session ini-setting in backend/testing environments are possible 2019-12-10 23:35:16 +01:00
nupplaPhil
b9f8762eb3
Use Native Session functions (global "$_SESSION" variable) for Memory class because of the direct usage of the $_SESSION class all around the codebase 2019-12-10 22:29:49 +01:00
nupplaPhil
ce2610000b
Renaming class 2019-12-10 08:49:33 +01:00
nupplaPhil
26bd956912
Optimize L10n usage for Session (reduce "App" complexity even more) 2019-12-10 00:56:49 +01:00
nupplaPhil
cad7e534a4
Add phpdoc 2019-12-10 00:50:05 +01:00
nupplaPhil
555513e4b4
Add Session Management instances (including Depenency Injection)
- Prerequesite for mocking Sessions
- Reduce "App" class complexity
2019-12-10 00:44:56 +01:00
nupplaPhil
009a8bb939
Initializing SessionHandlers with Dependency Injection 2019-12-09 23:09:18 +01:00
nupplaPhil
54392fab81
Move Cookie to own class (with tests)
Move Authentication to App namespace
2019-12-08 22:45:34 +01:00
Michael
b1fa0e8e26 ACL: Contact list is now sorted, forums reappeared 2019-12-06 07:25:21 +00:00
Hypolite Petovan
7cfe05f849 Restore correct test for hidewall in ACL::getFullSelectorHTML 2019-12-05 20:05:47 -05:00
nupplaPhil
96555a7385
Refactor "Authentication" class with four main methods:
- withSession() - for auto authentication with Session/Cookie variables
- withOpenId() - for authentication with an OpenID account
- withPassword() - for authentication with Password
- setForUser() - for setting the user auth context of the current session

Refactor "Session" class - contains now "native" Session Management methods
2019-12-05 23:02:51 +01:00
nupplaPhil
18a3d18ba6
Move Authentication methods to class "Authentication" 2019-12-05 23:02:50 +01:00
Hypolite Petovan
f989c331a3 Fix warnings about unexpected parameter array values type in ACL::getFullSelectorHTML
- Addresses https://github.com/friendica/friendica/issues/7676#issuecomment-560503744
2019-12-03 06:59:51 -05:00
Philipp
6531819971
Merge pull request #7884 from MrPetovan/bug/7834-ignore-reload
Restore post reload after (un)ignore
2019-12-02 09:40:31 +01:00
Hypolite Petovan
01b81f7bba
Merge pull request #7885 from nupplaphil/bug/7881_allowed_themes
Themes are now saved just once
2019-12-01 08:12:20 -05:00
nupplaPhil
7ebd5e6b15
Themese are now saved just once 2019-12-01 08:43:50 +01:00