-
Notifications
You must be signed in to change notification settings - Fork 2k
refactor(app): Standardize subdomain detection logic #9751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(app): Standardize subdomain detection logic #9751
Conversation
Co-authored-by: Pooya Parsa <pooya_parsa_dadashi@yahoo.com>
I wouldn't add the participants' local domains to the config. Sorry, if everyone adds their own region, it will be unnecessary. Try generating the docs, I think there's an error: I don't quite understand what the function limits? |
Co-authored-by: Pooya Parsa <pooya_parsa_dadashi@yahoo.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! That's a really nice improvement.
Thanks for the reviews! |
* refactor(app): Standardize subdomain detection logic * Update app/Config/Hostnames.php Co-authored-by: Pooya Parsa <pooya_parsa_dadashi@yahoo.com> * Update tests/system/Helpers/URLHelper/MiscUrlTest.php Co-authored-by: Pooya Parsa <pooya_parsa_dadashi@yahoo.com> * addressing review comments * cs fix * cs fix * cs fix * remove typo in docs ci-skip --------- Co-authored-by: Pooya Parsa <pooya_parsa_dadashi@yahoo.com>
Description
As discussed here, this pulls out the subdomain detection logic from the restrict controller attribute into a helper method in the url_helper. It pulls the TLDs list into a new config file so users can easily customize this list. Replaced the current RouteCollection subdomain detection with this new feature as it's more complete.
Checklist: