Hi guys,
I have to start a new project where configurations will be based on the domain of the website:
- partner1.website.com => partner1.config.php
- partner2.website.com => partner1.config.php
How can I fetch the domain name and load specific configuration files during the bootstrap of the application, if the Request object still does not exist?
I think that the $_SERVER is the unique way to achieve this , I cannot neither use middleware. I’m wrong? How would you do that?
Thanks