I have database configuration stored in an external system. In
bootstrap.php I fetch the credentials. How do I pass them, or set a variable, so the matomo database connections use this config data?
I found a plugin that does something like this. It looks like I need to override the settings read from the config.ini.php file, and there is an event that triggers which will allow me to do this.
From the plugin, I see how I can register for the
Db.getDatabaseConfig event. I don't think I want to create a plugin in the
bootstrap.php file. Is there an easier way to tap into that event registration in the
So, no way to listen for that event via some code I initialize in bootstrap.php?
I am trying to stay away from plugins because I am deploying this fully configured. Can’t use the admin console to install plugins dynamically. I know I can install the plugin locally by unzipping into a folder, but I’m trying to keep it simple.
—PHP noob here—