mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Extracted some methods into a BookRepo
This commit is contained in:
@@ -92,11 +92,11 @@ function userCanOnAny(string $permission, string $entityClass = null): bool
|
||||
|
||||
/**
|
||||
* Helper to access system settings.
|
||||
* @param $key
|
||||
* @param bool $default
|
||||
* @param string $key
|
||||
* @param $default
|
||||
* @return bool|string|SettingService
|
||||
*/
|
||||
function setting(string $key = null, bool $default = false)
|
||||
function setting(string $key = null, $default = false)
|
||||
{
|
||||
$settingService = resolve(SettingService::class);
|
||||
if (is_null($key)) {
|
||||
|
Reference in New Issue
Block a user