Skip to content

Autocompletion for options in the form type #162

@stof

Description

@stof

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 or setAllowedTypes are used for some options: http://symfony.com/doc/current/components/options_resolver.html#configure-allowed-types

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions