Commit Graph

151 Commits

Author SHA1 Message Date
Philipp
7895024e75 add license 2023-02-10 14:54:17 +01:00
Philipp
513ef03421 Revert node.config.php into Config table 2023-02-10 14:06:22 +01:00
Philipp
98857f8d7a Add exception if lock wasn't successful 2023-02-10 14:06:21 +01:00
Philipp
9627af924a Add support for toString/Serializable 2023-01-21 19:42:48 +01:00
Hypolite Petovan
21f172c585 Merge pull request #12674 from nupplaphil/bug/config_typesafe
Config: Improve the node.config.php transformation
2023-01-15 09:38:29 -05:00
Philipp
bc60eb6cb7 Apply feedback and describe the encoding method 2023-01-15 11:57:43 +01:00
Philipp
4c28f9cf9c Config: Improve the node.config.php transformation
- Add more types
- Improvement for assoziative arrays and key-value arrays
- Add a lot more tests
2023-01-15 00:53:51 +01:00
Philipp
fef10e8a57 Improve encapsulation 2023-01-11 22:00:29 +01:00
Philipp
11a8bd17e3 Assure that deleted cat/keys are working as expected
- A deleted cache-key would delete a merged cache-key as well
- Deleting a key in the Model results in reloading the config to assure any value from underlying files
2023-01-11 21:53:34 +01:00
Philipp
fd882abd80 Revert Cache delete() behavior to stable version 2023-01-11 21:10:59 +01:00
Philipp
5ea50a9e81 Fix "null" addon list 2023-01-08 02:49:56 +01:00
Philipp
2293ff6206 Add test for Addon failures 2023-01-08 02:49:56 +01:00
Philipp
0429a4e429 Fix loading empty node.config.php 2023-01-08 02:49:56 +01:00
Philipp
6bd1740a94 omg .. wrong assertion .. 2023-01-07 15:49:55 +01:00
Philipp
6e4e2c4a82 Fix warning text 2023-01-07 15:30:45 +01:00
Philipp
6e0d16f22b Add warning message in case node.config.php isn't writable 2023-01-07 15:16:55 +01:00
Philipp
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
05048d4abf Update src/Core/Config/ValueObject/Cache.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-06 12:43:04 +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
b3772163d8 Add doc 2023-01-06 03:06:11 +01:00
Philipp
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
e14050491a Config fixing
- unlock/close the `node.config.php` in every circumstances
2023-01-06 01:10:57 +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
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
13b234d279 Use addons config entries instead of the addon table 2023-01-04 21:55:51 +01:00
Philipp
dce86be58e Just commit config transactions if something changed 2023-01-04 19:55:22 +01:00
Philipp
aabe39220d Make flock writing easier 2023-01-04 08:16:40 +01:00
Philipp
c057954896 Make BaseURL check/save transactional and make the whole process easier 2023-01-04 08:14:00 +01:00
Philipp
17105cf7d1 Fix config read/write locking 2023-01-04 00:25:18 +01:00
Philipp
beff759c82 Update src/Core/Config/Model/ConfigTransaction.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-03 17:39:32 +01:00
Philipp
a46cd2fb36 Remove get() from config transaction interface 2023-01-03 17:26:48 +01:00
Philipp
b439df892a Apply suggestions 2023-01-03 17:24:05 +01:00
Philipp
dd88d193b9 Escape single quotes and backslashes 2023-01-03 15:36:36 +01:00
Philipp
65d79d4c93 Introduce ISetConfigValuesTransactional for transactional config behaviour 2023-01-03 14:22:07 +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
88b3effc18 Use toConfigValue in case of serialized, legacy data 2023-01-03 14:22:05 +01:00
Philipp
1e574d5383 Refactor IManageConfigValues interface 2023-01-03 14:22:04 +01:00
Philipp
d272e8c3c7 Remove unnecessary classes 2023-01-03 14:22:03 +01:00
Philipp
b871e1d264 Introduce lightweight Config model 2023-01-03 14:22:02 +01:00
Philipp
0f91d1cbde Introduce ConfigFileManager for config files 2023-01-03 14:22:02 +01:00
Philipp
fea4b202c1 Introduce ConfigFileTransformer for Config files 2023-01-03 14:22:02 +01:00
Hypolite Petovan
1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Hypolite Petovan
23dda5d510 Deprecate default value parameters in Session and Config interfaces
- It is more efficient to use the null coalescing operator ?? that prevents the computation of the default value if the key has been found
2022-11-04 06:42:38 -04:00
Philipp
3d8e82d95d Merge pull request #11141 from urbalazs/language-names
Add native language names to language selector & fix config during install
2022-01-23 20:55:40 +01:00
Philipp
71c7669066 Fix config usage during install process 2022-01-23 20:08:48 +01:00
Balázs Úr
733f3de9ed Add missing copyright text 2022-01-02 10:49:50 +01:00
Philipp
322b7c856c Merge pull request #11129 from urbalazs/copyright-2022
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00