Commit graph

226 commits

Author SHA1 Message Date
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
Philipp
497fc4e432
Move Monolog to Addons 2022-10-17 22:22:00 +02:00
Tobias Diekershoff
49ed627aed change IP of Vagrant VM 2022-10-15 17:31:57 +02:00
Tobias Diekershoff
f862d73f49 added PHP GMP module to the installation section of the Vagrant VM provision 2022-10-15 09:25:11 +02:00
Roland Häder
9069abbb30
Changed doubled-quotes to single 2022-06-25 16:48:34 +02:00
Roland Häder
3aeeac5d98
Rewrite:
- rewrote autotest.sh and moved it to bin/dev/ as this is clearly a developer
  script
- the rewrite's goal is towards Shell/POSIX-compliance (e.g. ${VAR} and not $VAR)
2022-06-23 17:36:56 +02:00
Roland Häder
6a98ffa330
Updated composer.phar 2022-06-20 22:55:21 +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
Michael
f277d9cd2f Exclude several folders from translation generation 2022-05-16 05:30:58 +00:00
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Philipp
c2b5eb2838
Improve repository usage 2021-11-05 20:52:34 +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
Philipp
195a2699a9
Add PHP8 to Vagrant 2021-10-18 20:39:36 +02:00
Philipp
b878481c4e
Remove messages.po if it does exist :-) 2021-10-04 11:58:25 +02:00
fabrixxm
f5d73cb89a Fix comments, remove sed bkp files, fix bash compatiblity 2021-10-02 14:45:25 +02:00
fabrixxm
30c3740f67 Fix run_xgettext.sh code and make it work on osx
- run script thru `shellcheck` and fix code
- replace `readlink -f` with a function which works on osx too
- set flags to stop on errors
2021-10-01 17:26:19 +02:00
Tobias Diekershoff
9b23ac578e Vagrant: create the correct mail aliases during provision 2021-10-01 10:18:43 +02:00
Tobias Diekershoff
d52e2ab791 Vagrant: Replace comment with more fitting one in provision 2021-10-01 10:00:01 +02:00
Tobias Diekershoff
7331e90c00 Vagrant: Avoid mis-leading error during setup
With the use of Friendicas auto-installation feature and the pre-configured
config file, the admin email address is set. Setting it again after the
installation is compleated will generate a mis-leading error message.
2021-10-01 08:41:58 +02:00
Tobias Diekershoff
93bbf27d52 Vagrant: Do not pull PHP requirements during VM setup
Don't pull the PHP requirements of Friendica with composer during the VM setup.

First coding is done out side of the VM, so should be the management of the
dependencies. Additionally if the _VirtualBox Guest Additions_ versions don't
match on the guest and host systems, writing to the shared directory will not
work, thus running composer will generate error messages during the initial
setup and Friendica wont work.
2021-10-01 08:37:19 +02:00
Philipp
a676060eea
Remove outdated friendica_test_data.sql 2021-07-11 14:27:52 +02:00
Hypolite Petovan
fcac4109a2 Update Composer binary to version 1.10.22 2021-05-31 09:10:34 -04:00
fabrixxm
dd1835d15d Update vagrant devbox provisioning
- run provisioning script as root
- don't load friendica_test_data.sql which is outdated
- install friendica and create users via console commands
- install cronjob in `/etc/cron.d/friendica` and run as `www-data` user
- force to have "vagrant-vbguest" insstalled. We need updated vbguest
  addins to correctly mount local folder
- add "config.hostname" and "system.ssl_policy" values in
  `local.config.vagrant.php`
2021-05-24 17:08:21 +02:00
Philipp
f1e268ee0a
remove GitHub Action for PHP tests 2021-05-16 12:56:15 +02:00
Philipp
943f965f59
Fix Transifex
- More verbose output
- add "stable" parameter to sort
- add LC_ALL=C parameter
2021-04-28 23:34:48 +02:00
Philipp
7eaa5d7727
Add sort command 2021-04-10 20:07:28 +02:00
Philipp
3f2d5c4111
Setup php-cs-fixer 2021-04-07 20:05:58 +02:00
Philipp
7b7322a90a
Remove PHPUnit dependency & create shell-script with description for it 2021-04-05 12:35:56 +02:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Hypolite Petovan
8b6b36d6cd Update Composer executable to version 1.10.20 to add PHP 8 support 2021-03-01 13:38:52 -05:00
Hypolite Petovan
004419de46 Remove references to removed frost theme 2021-02-09 23:25:47 -05: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
Philipp
8318a0b640
Move ExAuth, FKOAuth1 & FKOAuthDataStore to own namespace Friendica\Security 2020-09-30 11:14:01 +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
cdb61be06f
Rewrite Process Model/Core 2020-09-15 18:16:44 +02:00
Tobias Diekershoff
89f75406fa added Roger Meyer to the credits 2020-09-09 07:43:41 +02:00
Hypolite Petovan
06632536f3 Forbid non-CLI access to command-line scripts 2020-09-07 05:51:26 -04:00
Hypolite Petovan
3bd8b81154 Prevents Apache from serving CLI scripts 2020-09-07 05:43:20 -04:00
Michael Vogel
fc2340d4af
Merge pull request #8909 from MrPetovan/task/ex_auth
Refactor ExAuth for DICE
2020-08-22 22:12:22 +02:00
Michael
98dd15ec9a Adding a cooldown phase for the daemon 2020-08-19 18:21:40 +00:00
Philipp Holzer
8565617ea1 Refactor ExAuth for DICE 2020-07-21 02:30:12 -04:00
Tobias Diekershoff
7303920742 Update composer.phar to Version 1.10.7 2020-06-20 17:41:25 +02:00
Hypolite Petovan
4621da7ef2 Improve bin/run_xgettext script
- Exclude more folders from find
- Add progress ratio
- Add computed current year
2020-04-05 11:12:41 -04:00
Hypolite Petovan
d9c817df1a Update documentation in bin/auth_ejabberd 2020-03-29 12:46:16 -04:00
nupplaPhil
7d714319c8
Add license info at Friendica PHP files 2020-02-09 16:34:23 +01:00
nupplaPhil
85dc9bb96b
Add license info at Friendica PHP files 2020-02-09 16:18:46 +01:00
nupplaPhil
7f6343bda7
no phpdoc 2020-02-02 22:44:31 +01:00
nupplaPhil
11be31d601
Fix wait-for-connection script comment 2020-02-02 22:27:05 +01:00
Hypolite Petovan
74a25eb670 [Composer] Update binary and lock file 2020-01-27 18:40:55 -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
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
Michael
0a4119adaf @brief is removed completely 2020-01-19 06:05:23 +00:00
nupplaPhil
e57a87f224
Remove deprecated App::setBaseURL() - process methods to DI::baseUrl()->saveByURL() 2019-12-29 20:17:47 +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
nupplaPhil
3d92989c15
fix run_xgettext.sh FRIENDICA_VERSION 2019-12-05 23:25:03 +01:00
Michael Vogel
2f2480d88d
Merge pull request #7876 from MrPetovan/task/7308-backport-compose-acl
Generalize the Compose ACL to the whole site
2019-11-28 21:24:20 +01:00
Hypolite Petovan
b64b18e6f7 Remove obsolete view/js/acl.js
- Remove references to the deleted file
2019-11-28 12:54:56 -05:00
Casper
8b610bb192
Update to version 1.9.1
The old version 1.7.2 seems to have an issue with openssl 1.1.1
2019-11-22 11:39:01 -05:00
Casper
c1a1f1ce26
Update vagrant_provision.sh
Line 20-27 -> add slash at the end of every entry and removed empty entries.
Caused error in creating .csr file
PS. the virtualbox-guest-x11 is not in the given debian repository. Better take an Ubuntu repository
Also inserted:
sudo apt-get install -y ubuntu-desktop
sudo systemctl set-default graphical.target
to install a desktop environment
2019-11-14 21:36:29 +00:00
Tobias Diekershoff
2a383688a6 added git as dependency for the Vagrant VM and made the call to compuser with www-data 2019-10-04 11:40:39 +02:00
Tobias Diekershoff
d8f9d8556d updated Vagrand provision script
* removed leading spaces
* changed from MySQL to MariaDB
2019-10-01 10:17:15 +02:00
Philipp Holzer
cd46a5650a
Add some explanations about the new scripts 2019-09-30 14:33:49 +02:00
Philipp Holzer
c65d574ac3
enable codecov 2019-09-30 14:03:14 +02:00
Philipp Holzer
d5dd12b8f8
Add Drone CI
- Add drone test environment
- Add drone config
- apt phpunit
- Fix api.php
- Fix item.php
- Fix DBStructure
- Check if caching is possible during tests
2019-09-30 14:03:12 +02: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
a60eb9e33d
Use DICE for Console
- Use Friendica\Core\Console as Controller for DI-library
- Refactor every console command to use DICE (when possible)
- Adjusting tests
2019-07-31 19:37:42 +02:00
Philipp Holzer
930ce855f8
Use BaseObject in auth_ejabberd because of static dependencies inside ExAuth 2019-07-28 00:02:51 +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
e0b1f4f251
Hardening ConfigUpgrade 2019-03-30 18:54:22 +01: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
Philipp Holzer
80f1feabe5
Refactoring Logging to use Configuration 2019-02-17 20:43:52 +01:00
Philipp Holzer
eafcf3592d
Config FollowUp
- New Configuration (Config is now only holding the instance)
- New PConfiguration (PConfig is now only holding the instance)

- Config & PConfig-Adapter don't need "ConfigCache" anymore

- DB-Connection is now outside App->reload() for better dependency-chaining
2019-02-17 20:40:27 +01:00
Philipp Holzer
cb1ad4287d
adding parameter to App 2019-02-16 23:18:24 +01:00
Philipp Holzer
5e6e1a8025
Introducing Profiler 2019-02-16 23:11:30 +01:00