diff --git a/framework/core/src/Core/DatabaseSettingsRepository.php b/framework/core/src/Core/Settings/DatabaseSettingsRepository.php similarity index 73% rename from framework/core/src/Core/DatabaseSettingsRepository.php rename to framework/core/src/Core/Settings/DatabaseSettingsRepository.php index c7d86d5c2..ec726eefe 100644 --- a/framework/core/src/Core/DatabaseSettingsRepository.php +++ b/framework/core/src/Core/Settings/DatabaseSettingsRepository.php @@ -1,10 +1,10 @@ database = $connection; } + public function all() + { + return $this->database->table('config')->lists('value', 'key'); + } + public function get($key, $default = null) { if (is_null($value = $this->database->table('config')->where('key', $key)->pluck('value'))) { diff --git a/framework/core/src/Core/SettingsRepositoryInterface.php b/framework/core/src/Core/Settings/SettingsRepository.php similarity index 52% rename from framework/core/src/Core/SettingsRepositoryInterface.php rename to framework/core/src/Core/Settings/SettingsRepository.php index 5007e0f06..1b226236e 100644 --- a/framework/core/src/Core/SettingsRepositoryInterface.php +++ b/framework/core/src/Core/Settings/SettingsRepository.php @@ -1,9 +1,11 @@