-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] Shortcut debug:form for partial type name #29452
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
Conversation
👍 for the shortcut. I'd like also type |
i dont think we can conventionally change |
right, but we can change |
@yceruto but that replacement is not the one you were asking for, as the input you asked for is |
In order to test your branch out, I rebased it locally with current master (and there were around 3k commits difference) and I have a bug to report: On symfony 4.2 based skeleton project, when I run
Same thing happens with
while the IMO issue is not in your changes in the code but as you have based it on an older master or tag, there are additional changes needed. |
Hi @msvrtan ive rebased on latest master. On my machine everything is working as expected; debug:form urltype
Symfony\Component\Form\Extension\Core\Type\UrlType (Block prefix: "url")
========================================================================
debug:form urltype --no-debug
Symfony\Component\Form\Extension\Core\Type\UrlType (Block prefix: "url")
======================================================================== |
Thank you @ro0NL. |
This PR was merged into the 4.3-dev branch. Discussion ---------- [Form] Shortcut debug:form for partial type name | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes-ish | New feature? | yes | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> When running `debug:form` we must specify the short type class case-sensitive. As the current autoloader doesnt check for insensitive names. I propose this shortcut to quickly enable ``` debug:form url debug:form urltype ``` instead of forcing ``` debug:form UrlType ``` Commits ------- a28e3b6 [Form] Shortcut debug:form for partial type name
This PR was merged into the 4.3-dev branch. Discussion ---------- [Form] Fix debug form when using partial type name | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT Since #29452 (4.3) we have the possibility of passing a partial type name. This fixes the case where `debug:form dateTime` doesn't work as expected: ```bash In FormRegistry.php line 89: [Symfony\Component\Form\Exception\InvalidArgumentException] Could not load type "dateTime": class does not implement "Symfony\Component\Form\FormTypeInterface". ``` Commits ------- 22b20ca Fix debug:form dateTime
When running
debug:form
we must specify the short type class case-sensitive. As the current autoloader doesnt check for insensitive names.I propose this shortcut to quickly enable
instead of forcing