Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[FrameworkBundle] Configure extended type for upload validator #19207

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
wants to merge 1 commit into from
Closed

[FrameworkBundle] Configure extended type for upload validator #19207

wants to merge 1 commit into from

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Jun 28, 2016

Q A
Branch? "master"
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets ~
License MIT
Doc PR ~

Something just broke...

$ bin/console -vvv

  [InvalidArgumentException]                                                                                                                                                                      
  Tagged form type extension must have the extended type configured using the extended_type/extended-type attribute, none was configured for the "form.type_extension.upload.validator" service.  

Exception trace:
 () at /var/www/html/symfony/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/FormPass.php:59
 Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FormPass->process() at /var/www/html/symfony/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php:112
 Symfony\Component\DependencyInjection\Compiler\Compiler->compile() at /var/www/html/symfony/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:559
 Symfony\Component\DependencyInjection\ContainerBuilder->compile() at /var/www/html/symfony/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:485
 Symfony\Component\HttpKernel\Kernel->initializeContainer() at /var/www/html/symfony/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:117
 Symfony\Component\HttpKernel\Kernel->boot() at /var/www/html/symfony/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/html/symfony/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:118
 Symfony\Component\Console\Application->run() at /var/www/html/symfony/bin/console:29

@ro0NL
Copy link
Contributor Author

ro0NL commented Jun 28, 2016

Seems to make sense to resolve this from the alias, right?

Not sure what im doing here, whatever value/attribute i pass works, as long as extended-type is defined it's ok, ie this works also;

<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />

ping @fabpot

@ro0NL ro0NL mentioned this pull request Jun 28, 2016
@Tobion
Copy link
Contributor

Tobion commented Jun 28, 2016

Thx for trying to fix this. Closing in favor of #19211

@Tobion Tobion closed this Jun 28, 2016
@ro0NL ro0NL deleted the framework-bundle/form-upload-validator branch August 13, 2016 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.