Skip to content
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

Eroor with symfony 3.1 and symfony 3.2 #31

Open
ickbinhier opened this issue Nov 12, 2016 · 2 comments
Open

Eroor with symfony 3.1 and symfony 3.2 #31

ickbinhier opened this issue Nov 12, 2016 · 2 comments

Comments

@ickbinhier
Copy link

Tagged form type extension must have the extended type configured using the extended_type/extended-type attribute, none was configured for the "snowcap_im.form_extension" service.

@ickbinhier ickbinhier changed the title Eroor with symfony 3.1 Eroor with symfony 3.1 and symfony 3.2 Dec 6, 2016
@ickbinhier
Copy link
Author

@Moinax

this problem make a exception under symfony 3.1 and 3.2:

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception

                                                                                                                                                                                                                  
  [RuntimeException]                                                                                                                                                                                              
  An error occurred when executing the "'cache:clear --no-warmup'" command:                                                                                                                                       
  PHP Fatal error:  Uncaught Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: Tagged form type extension must have the extended type configured using the extended_type/extended-type a  
  ttribute, none was configured for the "snowcap_im.form_extension" service. in /var/www/html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/FormPass.php:65              
  Stack trace:                                                                                                                                                                                                    
  #0 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(120): Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FormPass->process(Object(Symfony\Com  
  ponent\DependencyInjection\ContainerBuilder))                                                                                                                                                                   
  #1 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(565): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\Depende  
  ncyInjection\ContainerBuilder))                                                                                                                                                                                 
  #2 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(484): Symfony\Component\DependencyInjection\ContainerB in /var/www/html/vendor/symfony/symfony/src/Symfony/Bundle/Framewor  
  kBundle/DependencyInjection/Compiler/FormPass.php on line 65

in the changelog from symfony find this:

  • The alias option of the form.type_extension tag is deprecated in favor of
    the extended_type/extended-type option.

    Before:

    <service id="app.type_extension" class="Vendor\Form\Extension\MyTypeExtension">
        <tag name="form.type_extension" alias="text" />
    </service>

    After:

    <service id="app.type_extension" class="Vendor\Form\Extension\MyTypeExtension">
        <tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\TextType" />
    </service>

i have in the moment th following 2 in file Resources/config/services.yml line 46 lines remove...

        tags:
            -  { name: form.type_extension, alias: snowcap_core_image }

But this is definitely not a solution.

@Moinax
Copy link
Member

Moinax commented Dec 6, 2016

Hi @ickbinhier , thank you to make a pull request with the bug fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants