-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add CountryCodeDataList
view helper and CountryCode
validator
#86
Add CountryCodeDataList
view helper and CountryCode
validator
#86
Conversation
f12b022
to
2a2c6a6
Compare
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.
Partial review - dropping in some feedback though :-)
Thanks @Ocramius |
b593ad3
to
240c7dc
Compare
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.
IMO this is good to go, @gsteel!
Do we need to add docs for it, though? 🤔
Clearing milestone for a release meanwhile: will re-target |
I'll get some docs together for review by @froschdesign soon as I can :) |
240c7dc
to
fb3ab42
Compare
Current psalm issues are unrelated - service manager needs an update so I'll do that in another patch |
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
fb3ab42
to
7ebe18a
Compare
Signed-off-by: George Steel <george@net-glue.co.uk>
…ist` Psalm doesn't appear to like the size of the array Signed-off-by: George Steel <george@net-glue.co.uk>
…d CountryCode validator Signed-off-by: George Steel <george@net-glue.co.uk>
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.
Good work! 👍🏻
Only a few minor changes are needed.
Co-authored-by: Frank Brückner <info@froschdesignstudio.de> Signed-off-by: George Steel <george@netglue.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Co-authored-by: Frank Brückner <info@froschdesignstudio.de> Signed-off-by: George Steel <george@netglue.uk>
@gsteel Lines 20 to 36 in fa9fc18
Thanks in advance! 👍🏻 |
Signed-off-by: George Steel <george@net-glue.co.uk>
Thanks for the help @froschdesign 👍 |
Description
Given the addition of the country code value object in #84, this patch puts it to use by adding a list object available in the container, that users can use to retrieve a list of all ISO-3166 alpha 2 country codes. The list implements and is aliased to a simple interface that user can override in the container, for example, in order to restrict the list to desired countries.
A view helper is added that outputs an HTML
datalist
element, useful for autocomplete and a validator for ISO3166 country codes.Documentation is outstanding.