diff --git a/app/Config/app.php b/app/Config/app.php index c97e36e62..ea9738da4 100755 --- a/app/Config/app.php +++ b/app/Config/app.php @@ -183,7 +183,6 @@ return [ // Custom BookStack 'Activity' => BookStack\Facades\Activity::class, - 'Setting' => BookStack\Facades\Setting::class, 'Views' => BookStack\Facades\Views::class, 'Images' => BookStack\Facades\Images::class, 'Permissions' => BookStack\Facades\Permissions::class, diff --git a/app/Facades/Setting.php b/app/Facades/Setting.php deleted file mode 100644 index 80feef89b..000000000 --- a/app/Facades/Setting.php +++ /dev/null @@ -1,16 +0,0 @@ -app->make(ViewService::class); }); - $this->app->singleton('setting', function () { - return $this->app->make(SettingService::class); - }); - $this->app->singleton('images', function () { return $this->app->make(ImageService::class); }); diff --git a/app/helpers.php b/app/helpers.php index c090bfd05..c1d72b91d 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -79,9 +79,9 @@ function userCanOnAny(string $permission, string $entityClass = null): bool /** * Helper to access system settings. - * @return bool|string|SettingService + * @return mixed|SettingService */ -function setting(string $key = null, $default = false) +function setting(string $key = null, $default = null) { $settingService = resolve(SettingService::class);