CodeIgniter Forums
Shield setup issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Shield setup issue (/showthread.php?tid=91830)



Shield setup issue - nfaiz - 10-21-2024

I'm planning to use shield for user management

I'm aware that this add-on will also include settings library.

I don't want to use database handler for settings and want to use array instead. For this, I need to change the handler by extending the settings config manually.

Suggestions:
Extend the Settings config for app/Config same as Auth, AuthGroups, AuthTokens. Only Run the migrations if the handler is set to database.


Thank you.


RE: Shield setup issue - InsiteFX - 10-21-2024

I would extended the settings library and add the modifications that you need.


RE: Shield setup issue - nfaiz - 10-22-2024

(10-21-2024, 11:07 PM)InsiteFX Wrote: I would extended the settings library and add the modifications that you need.

Yes, as I said before, I need to manually extending it and change the handler from database to array.

Why don't just include with the shieldConfusedetup same as Auth, AuthGroups, AuthTokens? Because it is included. You can't choose to not install it.

As for Now
Run command shieldConfusedetup
Edit Auth.php if I need to change the table
Extend Settings.php config manually
Change the handler
Run migrations

Expecting
Run command shieldConfusedetup
Edit Auth.php if I need to change the table
Extend Settings.php config manually
Change the handler.
Run migrations (skip migrations for Settings if database handler is set)


RE: Shield setup issue - datamweb - 11-30-2024

It seems they are trying to remove the enforcement of using the Settings library by Shield.
Here, we have a PR situation.

https://github.com/codeigniter4/shield/pull/1220