pronique / multitenant

MultiTenant CakePHP Plugin - Use this plugin to easily build SaaS enabled web applications
Other
36 stars 16 forks source link

Modify qualifier pre find tenant #9

Closed ghost closed 8 years ago

ghost commented 8 years ago

The plugin assumes that the qualifier will be stored in the form of subdomain.domain.tld in the tenant table. Some also just store the subdomain (as the domain will change depending on environment, dev, stage, live). This commit adds a config var to model (modifyQualifier) with the key 'method'. The only method supported now is str_replace and another config var model.modifyQualifier.remove gives the pattern which is removed completely.