从Shopware 6.4更新到6.5时,我将symfony/flex添加到composer.json。运行composer update --with-all-dependencies --no-scripts
可以工作,但composer update --with-all-dependencies
不行。它返回以下错误:
Executing script assets:install [KO]
[KO]
Script assets:install returned with error code 255
!! PHP Fatal error: Uncaught Error: Class "Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle" not found in /home/mws/Dokumente/projekte/academy.rotkaeppchen-mumm.de/vendor/shopware/core/Kernel.php:97
!! Stack trace:
!! #0 /home/mws/Dokumente/projekte/academy.rotkaeppchen-mumm.de/vendor/symfony/http-kernel/Kernel.php(331): Shopware\Core\Kernel->registerBundles()
!! #1 /home/mws/Dokumente/projekte/academy.rotkaeppchen-mumm.de/vendor/shopware/core/Kernel.php(163): Symfony\Component\HttpKernel\Kernel->initializeBundles()
!! #2 /home/mws/Dokumente/projekte/academy.rotkaeppchen-mumm.de/bin/console(74): Shopware\Core\Kernel->boot()
!! #3 {main}
!! thrown in /home/mws/Dokumente/projekte/academy.rotkaeppchen-mumm.de/vendor/shopware/core/Kernel.php on line 97
!!
Script @auto-scripts was called via post-update-cmd
字符串
是什么导致了这个错误,我该如何修复它?
1条答案
按热度按时间7vux5j2d1#
sensio/framework-extra-bundle
has been removed as a dependency。如果您按照迁移到flex模板的说明进行操作,则不需要执行此操作,但是如果它仍然出现在composer.json
和config/bundles.php
中的任何一个或两个中,则应该能够安全地将其从composer.json
和config/bundles.php
中删除。