FEATURE: make settings accessible only using helper class/function

This commit is contained in:
Michal Kváček
2016-09-22 21:09:48 +02:00
parent fb977ce1b9
commit b982831fbf
5 changed files with 81 additions and 7 deletions
+12
View File
@@ -11,4 +11,16 @@
function e($value)
{
return htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
}
/**
* Shortcut for \App\Helpers\Settings::get()
*
* @param $key
* @param null $default
*
* @return null|string
*/
function setting($key, $default = null) {
return \App\Helpers\Settings::get($key, $default);
}