Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
yceruto commentedDec 4, 2018
👍 for the shortcut. I'd like also type |
ro0NL commentedDec 4, 2018
i dont think we can conventionally change |
yceruto commentedDec 4, 2018
right, but we can change |
stof commentedDec 7, 2018
@yceruto but that replacement is not the one you were asking for, as the input you asked for is |
msvrtan commentedDec 8, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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. |
ro0NL commentedDec 8, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hi@msvrtan ive rebased on latest master. On my machine everything is working as expected; debug:form urltypeSymfony\Component\Form\Extension\Core\Type\UrlType (Block prefix:"url")========================================================================debug:form urltype --no-debugSymfony\Component\Form\Extension\Core\Type\UrlType (Block prefix:"url")======================================================================== |
fabpot commentedDec 10, 2018
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 <!-- seehttps://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 urldebug: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 | MITSince#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:```bashIn 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
Uh oh!
There was an error while loading.Please reload this page.
When running
debug:formwe 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