Releases: katmore/flat
cli controller additions
added the following methods:
- \flat\core\cli::enum_flag()
- \flat\core\cli::enum_optval()
config lib updates: inline string references
a (string) config value in a .php config file (which are obtained with the \flat\core\config::get() method) can make inline references to one or more config values from a .json file by using the following format in the php file's config value: <%CONFIG-REF-STRING::json_file_basename.property_name%>
for example:
-
if a file named
my_localizations.json
(in the root of the config dir) had the following contents:{ "my_localized_key" : "a localized value" }
-
and a file name
my_settings.php
(in the root of the config dir) had the following contents:$config['some_key'] = "a-start-of-some-config-value:<%CONFIG-REF-STRING::my_localizations.my_localized_key%>, some-other-part-of-some-config-value"; return $config;
-
the following PHP code...
echo \flat\core\config::get('my_settings/some_key');
-
would display...
a-start-of-some-config-value:a localized value, some-other-part-of-some-config-value
(the sub-string
a localized value
has replaced the<%CONFIG-REF-STRING::my_localizations.my_localized_key%>
sub-string of the original config value)
config lib updates
- ability to get config values from a .json file with the
\flat\core\config::get_ref()
method - a config value in a .php config file (which are obtained with the
\flat\core\config::get()
method) can refer to a config value from a .json file by making it's value in the .php config file a string with the following format:CONFIG-REF::json_file_basename.property_name
php 7.2 is now required
bump PHP version to 7.2 in composer.json
bump copyright year README.md et. al
packagist instists on new weird values for GPL license
v1.3.0 packagist instists on new weird values for GPL license
v1.2.9
more api response objects
v1.2.8 Create method_not_allowed.php
session handler fixes
v1.2.7 retry session start loop
cli compatibility fixes
removed a potentially flawed terminal console width detection
holiday wrapper fixes
fixes to the holiday wrapper