Commit graph

34 commits

Author SHA1 Message Date
a3b0960661 [CLEANUP] #30517 Remove unused line feeds and spaces 2024-06-10 10:00:24 +02:00
ce39742ee9 [TASK] #30517 Add magic function __call for get the mode with getMode() 2024-06-10 09:59:25 +02:00
942f8a4bde make Settings countable 2023-09-21 09:18:05 +02:00
82346bc36f output errors to STDERR 2023-09-21 09:17:26 +02:00
acdb06f766 use forked helpers cli-input/functions-cli 2023-03-23 18:39:13 +01:00
b1fbd3ecc7 update composer packages 2023-03-23 16:06:37 +01:00
d1eed24636 update composer packages 2023-03-15 18:37:23 +01:00
b9ab345946 add isset check 2022-11-23 11:18:42 +01:00
097ca9444f add mode switch to cfg script 2022-11-23 08:10:40 +01:00
50cc1130e2 fix writer for false values not separated by komma 2022-11-07 12:41:36 +01:00
849b35a72a do not quote result if it is a single value 2022-11-07 12:07:59 +01:00
d90a9880db make modes configurable in default.conf.php
relates #5453
2021-07-01 22:50:29 +02:00
9457987a31 Settings files are no longer required
all you need is a config/ directory under the appPath
If you do not have any settingsfiles to read, show will always report
settings not found
If you write, you can only write a new file with settings in the root
like `cfg write PREFIX
='{"key":"value","key2":{"some":"more","levels":"there"}}'

Which will give you a file `config/PREFIX.conf.php` with the contents
``` php
<?php return
[
	'key' => 'value',
	'key2' =>
	[
		'some' => 'more',
		'levels' => 'there'
	]
];
```

If you have a `default.conf.php` but now `conf.php` and modify a setting
a new conf.php file with the setting to override is written
2021-05-05 08:52:34 +02:00
ab736148c0 implement beta version of cli
relates to #2268
2021-05-04 17:55:29 +02:00
fc7579b5e6 fixes a bug that did not let you write an empty array (infinite loop)
and handles types correctly
boolean values are writte as true/false
null as null
numbers without quotes
2021-05-04 17:53:42 +02:00
9611f0b78f make appPath() read/write 2021-05-04 17:53:20 +02:00
8d938fc326 update EOL constant to newer PHP_EOL 2021-03-08 14:05:34 +01:00
29db532049 test numeric array override 2021-01-14 18:30:36 +01:00
ed554705e5 more tests 2021-01-14 17:48:41 +01:00
81c9247571 test Exceptions 2021-01-14 13:53:02 +01:00
f18ea38350 test nested Settings 2021-01-14 11:53:56 +01:00
0b3957a2de reorganize tests once again and make sure the write conf files are loaded 2021-01-14 08:58:14 +01:00
6d3158a5c7 add dataProvider to test buildFileName and fix related errors 2021-01-12 17:53:42 +01:00
20f962b26d streamline tests 2021-01-12 16:16:44 +01:00
c2b13b2f86 implement tests for site specific config
test that site directory config files are read correctly
correct Settings.php to pass tests
2021-01-11 16:38:35 +01:00
998ab30bd2 test overriding 2021-01-11 11:58:40 +01:00
b08be903d2 make default configurations more general and adjust tests accordingly 2021-01-07 17:41:37 +01:00
da100b85f5 write some more tests 2021-01-07 15:32:41 +01:00
e8bb2b3eb1 update phpunit dependency to latest 2021-01-07 15:32:16 +01:00
edebd9f02d testing Unity Tests 2021-01-06 17:50:32 +01:00
d61ccf69f7 correct typo in variable name and remove unused variable 2021-01-06 12:57:41 +01:00
3a53491810 correct name in composer.json 2021-01-06 08:14:35 +01:00
27d8e8bdba correct foobar in license notice 2021-01-05 17:53:39 +01:00
d2fa242f68 Open sourcing package 2021-01-05 17:46:56 +01:00