Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter v4.3.8 and v4.4.0 Released!
#14

(This post was last modified: 08-27-2023, 02:06 PM by kenjis.)

Quote:Now preferApp works only when you request a classname without a namespace.

...

For example, in a controller (namespace App\Controllers), if you called config(Config\App::class) by mistake (note the class is missing the leading \), meaning you actually passed App\Controllers\Config\App. But that class does not exist, so now Factories will return null.

See https://codeigniter4.github.io/CodeIgnit...#factories

Your case is the same thing. 
Previously, classes were searched by short classname alone, but starting with 4.4.0, classes with namespaces are now searched only for that specified class.
Reply


Messages In This Thread
RE: CodeIgniter v4.3.8 and v4.4.0 Released! - by kenjis - 08-27-2023, 02:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB