Skip to content

Commit 88e71c9

Browse files
authored
Merge pull request #5921 from kenjis/fix-docs-past-upgrade
docs: improve past upgrade (v4.1.0)
2 parents 1616fe7 + 77a2896 commit 88e71c9

8 files changed

Lines changed: 82 additions & 12 deletions

File tree

user_guide_src/source/changelogs/v4.1.0.rst

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,21 @@ Release Date: January 31, 2021
55

66
**4.1.0 release of CodeIgniter4**
77

8-
Changes:
8+
.. contents::
9+
:local:
10+
:depth: 2
911

10-
- Dropped support for PHP 7.2
11-
12-
Removed:
12+
BREAKING
13+
********
1314

1415
- ``Autoloader::loadLegacy()`` method was previously used for migration of non-namespaced classes in transition to CodeIgniter v4. Since ``4.1.0``, this support was removed.
1516

16-
Bugs Fixed:
17+
Changes
18+
*******
19+
20+
- Dropped support for PHP 7.2
1721

18-
Deprecations:
22+
Deprecations
23+
************
1924

20-
- Deprecated ``Model::fillPlaceholders(array $rules, array $data)`` method, use ``fillPlaceholders(array $rules, array $data)`` from Validation instead.
25+
- Deprecated ``Model::fillPlaceholders()`` method, use ``Validation::fillPlaceholders()`` instead.

user_guide_src/source/installation/upgrade_404.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
Upgrading from 4.0.x to 4.0.4
33
#############################
44

5+
Please refer to the upgrade instructions corresponding to your installation method.
6+
7+
- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>`
8+
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>`
9+
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>`
10+
11+
.. contents::
12+
:local:
13+
:depth: 2
14+
515
CodeIgniter 4.0.4 fixes a bug in the implementation of :doc:`Controller Filters </incoming/filters>`, breaking
616
code implementing the ``FilterInterface``.
717

user_guide_src/source/installation/upgrade_405.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
Upgrading from 4.0.4 to 4.0.5
33
#############################
44

5+
Please refer to the upgrade instructions corresponding to your installation method.
6+
7+
- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>`
8+
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>`
9+
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>`
10+
11+
.. contents::
12+
:local:
13+
:depth: 2
14+
515
**Cookie SameSite support**
616

717
CodeIgniter 4.0.5 introduces a setting for the cookie SameSite attribute. Prior versions did not set this

user_guide_src/source/installation/upgrade_410.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22
Upgrading from 4.0.5 to 4.1.0 or 4.1.1
33
######################################
44

5-
**Legacy Autoloading**
5+
Please refer to the upgrade instructions corresponding to your installation method.
6+
7+
- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>`
8+
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>`
9+
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>`
610

7-
`Autoloader::loadLegacy()` method was originally for transition to CodeIgniter v4. Since `4.1.0`,
8-
this support was removed and this method should not be used.
11+
.. contents::
12+
:local:
13+
:depth: 2
914

10-
**Model::fillPlaceholders**
15+
Breaking Changes
16+
****************
17+
18+
**Legacy Autoloading**
1119

12-
Replace any use of this method with its equivalent version from Validation instead.
20+
``Autoloader::loadLegacy()`` method was originally for transition to CodeIgniter v4. Since 4.1.0,
21+
this support was removed. All classes must be namespaced.

user_guide_src/source/installation/upgrade_412.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
Upgrading from 4.1.1 to 4.1.2
33
#############################
44

5+
Please refer to the upgrade instructions corresponding to your installation method.
6+
7+
- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>`
8+
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>`
9+
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>`
10+
11+
.. contents::
12+
:local:
13+
:depth: 2
14+
515
**current_url() and indexPage**
616

717
Due to `a bug <https://github.com/codeigniter4/CodeIgniter4/issues/4116>`_ in ``current_url()``,

user_guide_src/source/installation/upgrade_413.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
Upgrading from 4.1.2 to 4.1.3
33
#############################
44

5+
Please refer to the upgrade instructions corresponding to your installation method.
6+
7+
- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>`
8+
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>`
9+
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>`
10+
11+
.. contents::
12+
:local:
13+
:depth: 2
14+
515
**Cache TTL**
616

717
There is a new value in **app/Config/Cache.php**: ``$ttl``. This is not used by framework

user_guide_src/source/installation/upgrade_414.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
Upgrading from 4.1.3 to 4.1.4
33
#############################
44

5+
Please refer to the upgrade instructions corresponding to your installation method.
6+
7+
- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>`
8+
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>`
9+
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>`
10+
11+
.. contents::
12+
:local:
13+
:depth: 2
14+
515
This release focuses on code style. All changes (except those noted below) are cosmetic to bring the code in line with the new
616
`CodeIgniter Coding Standard <https://github.com/CodeIgniter/coding-standard>`_ (based on PSR-12).
717

user_guide_src/source/installation/upgrade_415.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Upgrading from 4.1.4 to 4.1.5
33
#############################
44

5+
Please refer to the upgrade instructions corresponding to your installation method.
6+
7+
- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>`
8+
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>`
9+
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>`
10+
511
.. contents::
612
:local:
713
:depth: 2

0 commit comments

Comments
 (0)