php-http/HttplugBundle

1.22 crash on cache clear in symfony 4.4

pkly opened this issue · 1 comments

pkly commented

PHP version: 7.4.14

Description
The new version of the bundle crashes symfony on cache clear.

How to reproduce
Pull symfony 4.4 and install the bundle.

Additional context
Error stack

In Alias.php line 107:
                                                                              
  [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]  
  The deprecation template must contain the "%alias_id%" placeholder.         
                                                                              

Exception trace:
  at /var/www/vendor/symfony/dependency-injection/Alias.php:107
 Symfony\Component\DependencyInjection\Alias->setDeprecated() at /var/www/vendor/php-http/httplug-bundle/src/DependencyInjection/HttplugExtension.php:390
 Http\HttplugBundle\DependencyInjection\HttplugExtension->configureClient() at /var/www/vendor/php-http/httplug-bundle/src/DependencyInjection/HttplugExtension.php:135
 Http\HttplugBundle\DependencyInjection\HttplugExtension->configureClients() at /var/www/vendor/php-http/httplug-bundle/src/DependencyInjection/HttplugExtension.php:103
 Http\HttplugBundle\DependencyInjection\HttplugExtension->load() at /var/www/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php:76
 Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process() at /var/www/vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php:39
 Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass->process() at /var/www/vendor/symfony/dependency-injection/Compiler/Compiler.php:94
 Symfony\Component\DependencyInjection\Compiler\Compiler->compile() at /var/www/vendor/symfony/dependency-injection/ContainerBuilder.php:762
 Symfony\Component\DependencyInjection\ContainerBuilder->compile() at /var/www/vendor/symfony/http-kernel/Kernel.php:596
 Symfony\Component\HttpKernel\Kernel->initializeContainer() at /var/www/vendor/symfony/http-kernel/Kernel.php:136
 Symfony\Component\HttpKernel\Kernel->boot() at /var/www/src/Kernel.php:158
 App\Kernel->boot() at /var/www/vendor/symfony/framework-bundle/Console/Application.php:169
 Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands() at /var/www/vendor/symfony/framework-bundle/Console/Application.php:75
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/vendor/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /var/www/bin/console:42
dbu commented

hi, thanks for reporting this. yeah, turns out deprecation changed in different symfony versions. we removed the service deprecation in 1.22.1, see #396

i just released version 1.22.1 which should get rid of the error.