Commit Graph

20 Commits

Author SHA1 Message Date
Philipp Holzer 513ef03421
Revert node.config.php into Config table 2023-02-10 14:06:22 +01:00
Philipp Holzer 98857f8d7a
Add exception if lock wasn't successful 2023-02-10 14:06:21 +01:00
Philipp Holzer 2293ff6206
Add test for Addon failures 2023-01-08 02:49:56 +01:00
Philipp Holzer 0429a4e429
Fix loading empty node.config.php 2023-01-08 02:49:56 +01:00
Philipp Holzer 6bd1740a94
omg .. wrong assertion .. 2023-01-07 15:49:55 +01:00
Philipp Holzer 6e4e2c4a82
Fix warning text 2023-01-07 15:30:45 +01:00
Philipp Holzer 6e0d16f22b
Add warning message in case node.config.php isn't writable 2023-01-07 15:16:55 +01:00
Philipp Holzer c35fd68ec2
Adapt doc 2023-01-06 12:47:00 +01:00
Philipp beb3d376b2
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-06 12:46:06 +01:00
Philipp 9462bfa763
Update src/Core/Config/Util/ConfigFileManager.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-06 12:42:43 +01:00
Philipp Holzer b3772163d8
Add doc 2023-01-06 03:06:11 +01:00
Philipp Holzer ce8c820221
add description 2023-01-06 02:54:34 +01:00
Philipp d53cb31869
Update src/Core/Config/Util/ConfigFileManager.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-06 02:16:35 +01:00
Philipp Holzer e14050491a
Config fixing
- unlock/close the `node.config.php` in every circumstances
2023-01-06 01:10:57 +01:00
Philipp Holzer 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 Holzer cdd57275eb
Some improvements
- Move $_SERVER into ConfigFileManager constructor
- Rename "creatConfigFileLoader" to "createConfigFileManager"
- Rename variable "loader" to "manager" in all tests
2023-01-06 01:03:00 +01:00
Philipp Holzer aabe39220d
Make flock writing easier 2023-01-04 08:16:40 +01:00
Philipp Holzer 17105cf7d1
Fix config read/write locking 2023-01-04 00:25:18 +01:00
Philipp ae1533e312
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-03 14:22:06 +01:00
Philipp Holzer 0f91d1cbde
Introduce ConfigFileManager for config files 2023-01-03 14:22:02 +01:00
Renamed from src/Core/Config/Util/ConfigFileLoader.php (Browse further)