8000 [RFC][DX] New command to debug form types · Issue #23688 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
8000

[RFC][DX] New command to debug form types #23688

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
yceruto opened this issue Jul 26, 2017 · 6 comments
Closed

[RFC][DX] New command to debug form types #23688

yceruto opened this issue Jul 26, 2017 · 6 comments
Labels
DX DX = Developer eXperience (anything that improves the experience of using Symfony) Feature Form

Comments

@yceruto
Copy link
Member
yceruto commented Jul 26, 2017
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes
Symfony version 3.4

These are some questions and issues that we could make us when we are building/using a form type or type extension:

  • Why is not my extension being applied to the form type?
  • Why is not available my new option in the child type?
  • What are the defined options for my form?
  • What options are required?
  • I want to modify the default value of an option but I don't know if this value is allowed, where was this option defined to know that?
  • etc.

Generally, I use the documentation to know what options are available, required, etc. I guess that keeping this options list updated is quite cumbersome and still there are options missing, e.g those defined by type extensions.

What about add a new command debug:form to get information from form types?

debug-form

Can this help us?

@robfrawley
Copy link
Contributor

I would absolutely find value in such a debug command.

8000
@caillioux
Copy link

Great feature!

@javiereguiluz javiereguiluz added the DX DX = Developer eXperience (anything that improves the experience of using Symfony) label Jul 30, 2017
@flip111
Copy link
Contributor
flip111 commented Jul 31, 2017

One of the things i always have to look up ...

ogizanagi added a commit that referenced this issue Aug 30, 2017
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] Add debug:form command

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #23688
| License       | MIT
| Doc PR        | -

![debug-form](https://user-images.githubusercontent.com/2028198/29007125-c3508cd6-7aca-11e7-91e2-c2b509847db5.png)

A short class name (e.g. `DateType`) can be passed as `class` argument too (the command will try to resolve its FQCN if it's in known form type namespaces).

Commits
-------

4f040d7 Add debug:form command
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this issue Aug 30, 2017
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] Add debug:form command

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony/symfony#23688
| License       | MIT
| Doc PR        | -

![debug-form](https://user-images.githubusercontent.com/2028198/29007125-c3508cd6-7aca-11e7-91e2-c2b509847db5.png)

A short class name (e.g. `DateType`) can be passed as `class` argument too (the command will try to resolve its FQCN if it's in known form type namespaces).

Commits
-------

4f040d78fe Add debug:form command
@pribeirojtm
Copy link

Hi there,

I'm using this command, but I think is something that could be also useful to add to it.

I don't see any possibility to check the fields of the given form to this command. How can I check form fields types? I thought this command would provide such functionality, but I don't know how.

Thanks.

@xabbuh
Copy link
Member
xabbuh commented Jul 6, 2018

@pribeirojtm Can you open a new issue if you would like to propose enhancements for an existing feature? Comments on closed issues/PRs are likely to get lost.

@pribeirojtm
Copy link

@xabbuh , done that. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX DX = Developer eXperience (anything that improves the experience of using Symfony) Feature Form
Projects
None yet
Development

No branches or pull requests

8 participants
0