Skip to content
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

Form options defined as required should be supported too #502

Closed
stof opened this issue May 12, 2015 · 1 comment
Closed

Form options defined as required should be supported too #502

stof opened this issue May 12, 2015 · 1 comment
Labels

Comments

@stof
Copy link
Contributor

stof commented May 12, 2015

Currently, the option completion seems to support only options defined with a default value.

It would be great to support required and optional options:

$resolver->setRequired(array('first_required', 'other_required'));

$resolver->setOptional(array('optional_setting'));
// OptionsResolver::setOptional is deprecated in Symfony 2.7. It is replaced by isDefined
$resolver->setDefined(array('optional_setting'));

all these methods accept both a string or an array of strings as argument

@Haehnchen
Copy link
Owner

navigation missing for now, but completion is working

Haehnchen added a commit that referenced this issue May 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants