- Issue created by @oliverpolden
- last update
over 1 year ago 93 pass - @oliverpolden opened merge request.
- 🇬🇧United Kingdom oliverpolden
With this you can inject the domainConfigOverrider (domain_config.overrider) service and then do:
// Load the domain you want.
$domain = $this->myFunctionToLoadADomain($params);
$this->domainConfigOverrider->setDomain($domain);I have tested this by creating an entity from my primary domain with settings on the entity that relate to two different domains. I have an event subscriber on entity insert that determines the domain and triggers a MailChimp campaign. The MailChimp module successfully loads the config for the relevant domain.