Commit Graph

23 Commits

Author SHA1 Message Date
norb d90a9880db make modes configurable in default.conf.php
relates #5453
2021-07-01 22:50:29 +02:00
Norbert Wagner 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
Norbert Wagner ab736148c0 implement beta version of cli
relates to #2268
2021-05-04 17:55:29 +02:00
Norbert Wagner 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
Norbert Wagner 9611f0b78f make appPath() read/write 2021-05-04 17:53:20 +02:00
Norbert Wagner 8d938fc326 update EOL constant to newer PHP_EOL 2021-03-08 14:05:34 +01:00
Norbert Wagner 29db532049 test numeric array override 2021-01-14 18:30:36 +01:00
Norbert Wagner ed554705e5 more tests 2021-01-14 17:48:41 +01:00
Norbert Wagner 81c9247571 test Exceptions 2021-01-14 13:53:02 +01:00
Norbert Wagner f18ea38350 test nested Settings 2021-01-14 11:53:56 +01:00
Norbert Wagner 0b3957a2de reorganize tests once again and make sure the write conf files are loaded 2021-01-14 08:58:14 +01:00
Norbert Wagner 6d3158a5c7 add dataProvider to test buildFileName and fix related errors 2021-01-12 17:53:42 +01:00
Norbert Wagner 20f962b26d streamline tests 2021-01-12 16:16:44 +01:00
Norbert Wagner 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
Norbert Wagner 998ab30bd2 test overriding 2021-01-11 11:58:40 +01:00
Norbert Wagner b08be903d2 make default configurations more general and adjust tests accordingly 2021-01-07 17:41:37 +01:00
Norbert Wagner da100b85f5 write some more tests 2021-01-07 15:32:41 +01:00
Norbert Wagner e8bb2b3eb1 update phpunit dependency to latest 2021-01-07 15:32:16 +01:00
Norbert Wagner edebd9f02d testing Unity Tests 2021-01-06 17:50:32 +01:00
Norbert Wagner d61ccf69f7 correct typo in variable name and remove unused variable 2021-01-06 12:57:41 +01:00
Norbert Wagner 3a53491810 correct name in composer.json 2021-01-06 08:14:35 +01:00
Norbert Wagner 27d8e8bdba correct foobar in license notice 2021-01-05 17:53:39 +01:00
Norbert Wagner d2fa242f68 Open sourcing package 2021-01-05 17:46:56 +01:00