Commit graph

90 commits

Author SHA1 Message Date
Michael
89e7420237 Friendica copyright changed from 2023 to 2034 2024-01-02 20:57:26 +00:00
Michael Vogel
f430e06f80
Update bin/daemon.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-12-05 22:45:16 +01:00
Michael
8827d4c142 Check if the daemon pid file can be written 2023-12-05 21:18:44 +00:00
Philipp
9f18222a06
Unify "Capability" 2023-07-26 21:44:31 +02:00
Philipp
e659a03140
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-07-17 20:20:21 +02:00
Philipp
d440b9a63f
Restore LoggerInterface import 2023-07-17 01:56:13 +02:00
Philipp
14b76e48f0
Introduce dynamic hook loading
- Dynamically load addon files
- Dynamically load hooks
- Rewrite Logger-logic to use new hook logic (Monolog is working again)
2023-07-16 18:43:35 +02:00
Philipp
73a9db84ee
Add posix_kill() SIGTERM for Friendica 2023-03-30 19:56:51 +02:00
Philipp
b2e14f209b
Move Update::check() into daemon loop 2023-01-06 17:03:04 +01:00
Philipp
baf3225916
Apply Update::check() suggestions 2023-01-06 12:50:14 +01:00
Philipp
5aa8e8adf1
Config fixings
- Delete now really overwrites static default/setting.config.php keys
- Delete now really overwrites static default/setting.config.php categories
- The Update::check() routine is added to different places
- Merge the given config file with the new config before writing
- Remove ConfigTransaction::get() because it's no more reliable
2023-01-06 01:03:00 +01:00
Philipp
317c525cbe
Fix keyValue() call at daemon.php 2023-01-04 00:25:16 +01:00
Philipp
1e574d5383
Refactor IManageConfigValues interface 2023-01-03 14:22:04 +01:00
Hypolite Petovan
1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Philipp
b227d65dfc
Replace worker_daemon_mode config entry with key-value entry 2022-12-29 21:53:57 +01:00
Michael
d3e167c77c All references to boot.php are now removed 2022-10-19 20:38:25 +00:00
Roland Häder
9069abbb30
Changed doubled-quotes to single 2022-06-25 16:48:34 +02:00
Michael
e4e8b8cb46 Restoring old status 2022-05-20 22:52:44 +00:00
Michael
5095ce621a Test the license check 2022-05-20 22:43:27 +00:00
Michael
653af77e5f Further formatting fixes 2022-05-20 04:52:18 +00:00
Michael
dc16e6d471 The worker is split into several classes 2022-05-19 19:24:21 +00:00
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Philipp
38f70cc55a
Refactor Process for new paradigm 2021-11-05 20:52:28 +01:00
Philipp
acb06af28d
Add extended ErrorHandling 2021-10-23 20:58:38 +02:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02: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
9a6141dcbe Use "pcntl_fork" to fork processes 2021-01-01 19:35:29 +00:00
Michael
0edc058a17 Ensure that the daemon is called faster and more reliably 2020-11-18 13:29:10 +00:00
Hypolite Petovan
06632536f3 Forbid non-CLI access to command-line scripts 2020-09-07 05:51:26 -04:00
Michael
98dd15ec9a Adding a cooldown phase for the daemon 2020-08-19 18:21:40 +00:00
nupplaPhil
85dc9bb96b
Add license info at Friendica PHP files 2020-02-09 16:18:46 +01: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
ed9392469e
Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Michael
dcbd44ab88 Removed the rest of the @brief fields 2020-01-19 20:44:01 +00: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
9cec293ccc
Refactor dynamic App::getMode() to static DI::mode() 2019-12-29 20:17:42 +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
Philipp Holzer
b13dbb3dcb
Remove $_SERVER['PHP_SELF'] usage 2019-09-17 16:47:00 +02:00
Philipp Holzer
9682cc440c
Using method-chaining for DICE 2019-08-05 09:03:12 +02:00
Philipp Holzer
6c2cf494b5
Remove DependencyFactory
- Include all necessary classes in `dependencies.config.php`
- Add DI-reference to BaseObject (acts as a global registry)
- Refactor all static "init()" methods to use the global registry

- Refactor Logging for Worker-Logger a little bit
2019-07-27 23:54:12 +02:00
Philipp Holzer
55999730e0
Introduce DICE
- Adding dice library
- Adding dependency config

- Removing Factories
- Refactoring App\Mode constructor
- Refactoring App\Router constructor
- Refactoring BasePath for DI usage
- Refactoring ConfigFileLoader constructor
- Refactoring Profiler constructor

- Adjust entrypoints (index, console, worker, ..)

- Adding functional test for DI
- Fix tests because of refactorings
2019-07-21 01:22:10 +02:00
Philipp Holzer
082634adbc
Moving from DBA to Database 2019-06-24 09:36:07 +02:00
Philipp Holzer
90a38a00d8
Adding basepath, urlpath, hostname and ssl_policy to installation 2019-04-14 14:23:06 +02:00
Philipp Holzer
8c3aebc376
Bugfixings in Config
- replaced usage of "!<unset>!" with null-returns
- fixed bool settings (0/1)
- fixed overriding config-values
- fixed basepath problems
2019-02-22 23:51:13 +01:00
Philipp Holzer
5e5c39b0e1
Refactored DependencyFactory for Profiler 2019-02-17 21:12:12 +01:00
Philipp Holzer
cdcf1667d7
Adding DependencyFactory 2019-02-17 20:45:39 +01:00