I am going to use the same source code for a series of domains that will point to the same directory (from where Flarum will be served) but each one will have its own database. Now, what I want is that every time I enter a domain for the first time (when the database is not created) the installer would show up. Right now, the installer is shown when the configuration file does not exist. What I am thinking is:
- The configuration file should contain an array of settings for each domain
- If the current domain has no settings in the configuration file, show installer and create settings array for it
- Everywhere in the code, settings should be domain based
Now, can this be done with an extension? I suppose there are no events to use for this purpose yet