From aa353fe411a2129510aff7444ee3f3eb0a3f4a7b Mon Sep 17 00:00:00 2001 From: MGatner Date: Mon, 15 Nov 2021 19:56:29 +0000 Subject: [PATCH] Migrate namespace --- UPGRADING.md | 2 ++ composer.json | 2 +- src/Config/Services.php | 6 +++--- src/Config/Settings.php | 4 ++-- .../Migrations/2021-07-04-041948_CreateSettingsTable.php | 2 +- .../Migrations/2021-11-14-143905_AddContextColumn.php | 2 +- src/Handlers/BaseHandler.php | 2 +- src/Handlers/DatabaseHandler.php | 2 +- src/Settings.php | 4 ++-- tests/HelperTest.php | 2 +- tests/SettingsTest.php | 2 +- tests/_support/TestCase.php | 2 +- 12 files changed, 17 insertions(+), 15 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index 19a8741..9a59d9a 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -3,4 +3,6 @@ ## Version 1 to 2 *** +* The namespace has been migrated from `Sparks\Settings` to `CodeIgniter\Settings`; any references will need to be updated. * Due to the addition of contexts the `BaseHandler` abstract class was changed. Update any handlers that extend this class to include the new and changed methods. +* The main library (`Settings`) now requires a Settings config for the constructor (this is supplied by the Service); update any direct calls to the library constructor. diff --git a/composer.json b/composer.json index 41c5197..b79fa47 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ }, "autoload": { "psr-4": { - "Sparks\\Settings\\": "src" + "CodeIgniter\\Settings\\": "src" }, "exclude-from-classmap": [ "**/Database/Migrations/**" diff --git a/src/Config/Services.php b/src/Config/Services.php index 2baf619..d7862f5 100644 --- a/src/Config/Services.php +++ b/src/Config/Services.php @@ -1,10 +1,10 @@