|
| 1 | +############################## |
| 2 | +Upgrading from 4.3.0 to 4.3.1 |
| 3 | +############################## |
| 4 | + |
| 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 | + |
| 15 | +Composer Version |
| 16 | +**************** |
| 17 | + |
| 18 | +.. important:: If you use Composer, CodeIgniter v4.3 requires |
| 19 | + Composer 2.0.14 or later. |
| 20 | + |
| 21 | +If you are using older version of Composer, upgrade your ``composer`` tool, |
| 22 | +and delete the **vendor/** directory, and run ``composer update`` again. |
| 23 | + |
| 24 | +The procedure, for example, is as follows:: |
| 25 | + |
| 26 | + > composer self-update |
| 27 | + > rm -rf vendor/ |
| 28 | + > composer update |
| 29 | + |
| 30 | +Mandatory File Changes |
| 31 | +********************** |
| 32 | + |
| 33 | +Config Files |
| 34 | +============ |
| 35 | + |
| 36 | +app/Config/Email.php |
| 37 | +-------------------- |
| 38 | + |
| 39 | +- If you updated **app/Config/Email.php** when upgrading to v4.3.0, you must |
| 40 | + set the default values to ``$fromEmail``, ``$fromName``, ``$recipients``, |
| 41 | + ``$SMTPHost``, ``$SMTPUser`` and ``$SMTPPass`` to apply environment variable |
| 42 | + (**.env**) values. |
| 43 | +- If no default values are set, setting environment variables for them will not |
| 44 | + be reflected in the Config object. |
| 45 | + |
| 46 | +app/Config/Exceptions.php |
| 47 | +------------------------- |
| 48 | + |
| 49 | +- If you are using PHP 8.2, you need to add new properties ``$logDeprecations`` and ``$deprecationLogLevel``. |
| 50 | + |
| 51 | +Project Files |
| 52 | +************* |
| 53 | + |
| 54 | +Some files in the **project space** (root, app, public, writable) received updates. Due to |
| 55 | +these files being outside of the **system** scope they will not be changed without your intervention. |
| 56 | + |
| 57 | +There are some third-party CodeIgniter modules available to assist with merging changes to |
| 58 | +the project space: `Explore on Packagist <https://packagist.org/explore/?query=codeigniter4%20updates>`_. |
| 59 | + |
| 60 | +Content Changes |
| 61 | +=============== |
| 62 | + |
| 63 | +The following files received significant changes (including deprecations or visual adjustments) |
| 64 | +and it is recommended that you merge the updated versions with your application: |
| 65 | + |
| 66 | +Config |
| 67 | +------ |
| 68 | + |
| 69 | +- app/Config/Encryption.php |
| 70 | + - Set the default value ``''`` to ``$fromEmail``, ``$fromName``, |
| 71 | + ``$recipients``, ``$SMTPHost``, ``$SMTPUser`` and ``$SMTPPass`` |
| 72 | + to apply environment variable (**.env**) values. |
| 73 | + |
| 74 | +All Changes |
| 75 | +=========== |
| 76 | + |
| 77 | +This is a list of all files in the **project space** that received changes; |
| 78 | +many will be simple comments or formatting that have no effect on the runtime: |
| 79 | + |
| 80 | +- app/Config/Email.php |
| 81 | +- composer.json |
0 commit comments