8000 [Form] Registering form types · Issue #8183 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Form] Registering form types #8183

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
flip111 opened this issue Jul 17, 2017 · 1 comment
Closed

[Form] Registering form types #8183

flip111 opened this issue Jul 17, 2017 · 1 comment
Labels
actionable Clear and specific issues ready for anyone to take them. Form hasPR A Pull Request has already been submitted for this issue.
Milestone

Comments

@flip111
Copy link
Contributor
flip111 commented Jul 17, 2017

https://symfony.com/doc/current/form/create_custom_field_type.html

the first paragraph mentions and finally, how you can register it for use in your application i don't see anything about registering it for use in my application on that page.

usecase:

I'm trying to figure out how to deal with form types in silex which still mentions You can register form types by extending form.types https://silex.symfony.com/doc/2.0/providers/form.html

i guess this is then outdated as well?

I like to keep things inline and not create classes right away (since i'm doing small and quick projects). If i HAVE TO create a class can it be an anonymous one?

@xabbuh xabbuh added the actionable Clear and specific issues ready for anyone to take them. label Jul 17, 2017
@xabbuh xabbuh added this to the 3.3 milestone Jul 17, 2017
@xabbuh
Copy link
Member
xabbuh commented Jul 17, 2017

Hm indeed, this was true before the introduction of the autoconfigure DI option in Symfony 3.3 where you had to manually tag a service for your class with form.type. We should reword the first paragraph.

For the Silex related issue you should ask on the Silex repo as they maintain their own documentation.

@xabbuh xabbuh added the Form label Jul 17, 2017
@javiereguiluz javiereguiluz added the hasPR A Pull Request has already been submitted for this issue. label Jul 24, 2017
xabbuh added a commit that referenced this issue Aug 1, 2017
…pes (javiereguiluz)

This PR was merged into the 3.3 branch.

Discussion
----------

Minor reword in the article about creating custom form types

This fixes #8183.

Commits
-------

4b95f7d Minor reword in the article about creating custom form types
@xabbuh xabbuh closed this as completed Aug 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable Clear and specific issues ready for anyone to take them. Form hasPR A Pull Request has already been submitted for this issue.
Projects
None yet
Development

No branches or pull requests

3 participants
0