Skip to content

Commit fa1ae68

Browse files
committed
docs: remove deprecated CodeIgniter\Config\Config::get() usage
1 parent 0dbdc1a commit fa1ae68

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

user_guide_src/source/installation/upgrade_configuration.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ Upgrade Guide
3131
from the CI3 config into the new CI4 config class as public class properties.
3232
4. Now, you have to change the config fetching syntax everywhere you fetch config
3333
values. The CI3 syntax is something like ``$this->config->item('item_name');``.
34-
You have to change this into ``config('MyConfigFile')->item_name;``. Alternatively,
35-
you can use the object-oriented approach: ``CodeIgniter\Config\Config::get('MyConfigFile')->item_name;``
34+
You have to change this into ``config('MyConfigFile')->item_name;``.
3635

3736
Code Example
3837
============

0 commit comments

Comments
 (0)