Welcome Guest, Not a member yet? Register   Sign In
CI 4.4.0 modules shared services not working
#6

(08-30-2023, 02:26 PM)kenjis Wrote: You customized the autoloading, so it seems there is something wrong.
and the line "'Modules'    => ROOTPATH . 'Modules', // my custom modules" in $psr4 should be removed.

I think there is no change in the framework code for Module service discovery in v4.4.0.
So I don't know why your app stop working.

You can check the diffs: https://github.com/codeigniter4/framewor...b10da1c710

Hi, Kenjis
Not so sure if main Modules path can be removed. I will make a lot of testing and debuging.
I will update on monday / tuesday.

Yesterday i think i figured out that my custom registrar tries to connect to DB and load model from module which is not loaded yet. And i think that makes infinite loop on Services.
Misleading, but i will make a bunch of tests and update here.

Thanks
Reply


Messages In This Thread
RE: CI 4.4.0 modules shared services not working - by davis.lasis - 08-30-2023, 10:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB