From 53a48a1ee374df15536b81cbe4ad6279579daa3f Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Mon, 9 Feb 2026 12:30:03 +0300 Subject: [PATCH 1/2] fix: Add `Paths::$envDirectory` to framework package --- admin/starter/app/Config/Paths.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/admin/starter/app/Config/Paths.php b/admin/starter/app/Config/Paths.php index 39a902029882..ee2d7ff3ba71 100644 --- a/admin/starter/app/Config/Paths.php +++ b/admin/starter/app/Config/Paths.php @@ -75,4 +75,16 @@ class Paths * is used when no value is provided to `Services::renderer()`. */ public string $viewDirectory = __DIR__ . '/../Views'; + + /** + * --------------------------------------------------------------- + * ENVIRONMENT DIRECTORY NAME + * --------------------------------------------------------------- + * + * This variable must contain the name of the directory where + * the .env file is located. + * Please consider security implications when changing this + * value - the directory should not be publicly accessible. + */ + public string $envDirectory = __DIR__ . '/../../'; } From fc4975e0810c0d063d33ae629ef6c6fa6ddfb74d Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Mon, 9 Feb 2026 12:30:43 +0300 Subject: [PATCH 2/2] docs: Add upgrade note --- user_guide_src/source/installation/installing_composer.rst | 4 ++-- user_guide_src/source/installation/upgrading.rst | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/installation/installing_composer.rst b/user_guide_src/source/installation/installing_composer.rst index 1f12d5321fef..00a978547fb8 100644 --- a/user_guide_src/source/installation/installing_composer.rst +++ b/user_guide_src/source/installation/installing_composer.rst @@ -191,11 +191,11 @@ Next Minor Version If you want to use the next minor version branch, after using the ``builds`` command edit **composer.json** manually. -If you try the ``4.7`` branch, change the version to ``4.7.x-dev``:: +If you try the ``4.8`` branch, change the version to ``4.8.x-dev``:: "require": { "php": "^8.2", - "codeigniter4/codeigniter4": "4.7.x-dev" + "codeigniter4/codeigniter4": "4.8.x-dev" }, And run ``composer update`` to sync your vendor diff --git a/user_guide_src/source/installation/upgrading.rst b/user_guide_src/source/installation/upgrading.rst index 9140c2298b3d..b06f9f62a68f 100644 --- a/user_guide_src/source/installation/upgrading.rst +++ b/user_guide_src/source/installation/upgrading.rst @@ -7,6 +7,12 @@ upgrading from. See also :doc:`./backward_compatibility_notes`. +The manual mentions changes to **project space**. To perform the update, +you need to compare the original files from **vendor/codeigniter4/framework** or from the ZIP archive and make changes. + +Example, the original **app/Config/App.php** will be located in **vendor/codeigniter4/framework/app/Config/App.php**. +Alternatively, replace it with a new file and add your previous lines. + .. note:: If you don't know what version of CodeIgniter you are currently running, you can get it from :ref:`the Debug Toolbar `, or simply echo the constant ``\CodeIgniter\CodeIgniter::CI_VERSION``.