Skip to content

Document typed arrays in optionsresolver #6048

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

Closed

Conversation

EVODelavega
Copy link

Documentation for changes introduced by Symfony PR 17032

}
}

Because the OptionsResolver will validate typed arrays recurively, it is possible to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- recurively
+ recursively

public function configureOptions(OptionsResolver $resolver)
{
// ...
//allowed type is a 2D array of string values
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would add a space between // and allowed

@xabbuh xabbuh added this to the 3.2 milestone May 21, 2016
@wouterj wouterj removed this from the 3.2 milestone Nov 8, 2016
@xabbuh xabbuh added this to the 3.3 milestone Dec 30, 2016
@weaverryan weaverryan changed the title Document typed arrays in optionsresolver [WCM] Document typed arrays in optionsresolver Sep 20, 2017
@weaverryan weaverryan added the Waiting Code Merge Docs for features pending to be merged label Oct 6, 2017
@javiereguiluz javiereguiluz added Missing Documentation OptionsResolver and removed On hold Waiting Code Merge Docs for features pending to be merged labels Oct 30, 2017
@javiereguiluz javiereguiluz modified the milestones: 3.3, 3.4 Oct 30, 2017
@javiereguiluz javiereguiluz changed the title [WCM] Document typed arrays in optionsresolver Document typed arrays in optionsresolver Oct 30, 2017
@wouterj
Copy link
Member

wouterj commented Dec 31, 2017

Hi @EVODelavega! Congratz on your feature!

As you submitted this doc PR 2 years ago, I've finished it for you in #8946 . I've kept your commit, so that you'll still get the credits you deserve.

Thanks for starting this PR and creatign this great feature!

@wouterj wouterj closed this Dec 31, 2017
javiereguiluz added a commit that referenced this pull request Jan 2, 2018
…VODelavega, wouterj)

This PR was merged into the 3.4 branch.

Discussion
----------

[OptionsResolver] Documented validation of array types

This continues #6048 . The feature was finally merged into symfony 3.4 (congratz @EVODelavega!), so let's document it!

Related Symfony PR: symfony/symfony#17032

Commits
-------

cb12592 Merged new example in older example, removing some text
318e199 Fix typo
bf5d9d3 Document typed arrays in optionsresolver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants