-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Autocompletion for options in the form type #162
Comments
http://symfony2-plugin.espend.de/languages/php/index.html#forms Symfony\Component\OptionsResolver\OptionsResolverInterface::setDefaults
Symfony\Component\Form\FormTypeInterface::setDefaultOptions
Symfony\Component\Form\FormTypeInterface::buildForm
Symfony\Component\Form\FormBuilderInterface::add missed some more?: Symfony\Component\Form\FormBuilderInterface::create
Symfony\Component\OptionsResolver\OptionsResolverInterface::replaceDefaults |
Well, the autocompletion of keys inside |
Note that I'm not talking of autcompletion for arguments when calling buildForm. I'm talking of the autocompletion of keys inside the form type method when using the |
todo notice: extend missing method to resolove issue |
we are ready, but by now only "goto" is supported: http://youtrack.jetbrains.com/issue/WI-21563 |
now ready |
When writing a form type, it would be great to have autocompletion for keys of
$options
in the different methods where it is available.These key should take into account the configuration of the form type itself (by looking at the code of its
setDefaultOptions
method and of all of its parent in the hierarchy (getParent
and recursively, plus all form extensions applied at any level).Thus, it is even possible to provide autocompletion for the type of the values in case
addAllowedTypes
orsetAllowedTypes
are used for some options: http://symfony.com/doc/current/components/options_resolver.html#configure-allowed-typesThe text was updated successfully, but these errors were encountered: