DependencyInjection错误-将Symfony2迁移到Symfony3-参数“0”;x";不';不存在
我正在执行从Symfony 2.7到Symfony 3+的迁移。已更新多个组件和依赖项 我设法解决了有关防火墙设置、表单和一些扩展(服务)的配置问题 对一个问题进行分类使我了解了另一个问题。 现在,每次运行DependencyInjection错误-将Symfony2迁移到Symfony3-参数“0”;x";不';不存在,symfony,Symfony,我正在执行从Symfony 2.7到Symfony 3+的迁移。已更新多个组件和依赖项 我设法解决了有关防火墙设置、表单和一些扩展(服务)的配置问题 对一个问题进行分类使我了解了另一个问题。 现在,每次运行php bin/console时,我都会收到一个错误: [Symfony\Component\DependencyInjection\Exception\OutOfBoundsException] The argument "3" doesn't exist. 我尝试使用-v或-vvv选
php bin/console
时,我都会收到一个错误:
[Symfony\Component\DependencyInjection\Exception\OutOfBoundsException]
The argument "3" doesn't exist.
我尝试使用-v或-vvv选项运行它,但我只得到:
Exception trace:
() at /xx/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Definition.php:242
Symfony\Component\DependencyInjection\Definition->getArgument() at /xx/vendor/sonata-project/core-bundle/DependencyInjection/Compiler/FormFactoryCompilerPass.php:48
Sonata\CoreBundle\DependencyInjection\Compiler\FormFactoryCompilerPass->process() at /xx/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php:139
Symfony\Component\DependencyInjection\Compiler\Compiler->compile() at /xx/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:710
Symfony\Component\DependencyInjection\ContainerBuilder->compile() at /xx/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:515
Symfony\Component\HttpKernel\Kernel->initializeContainer() at /xx/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:117
Symfony\Component\HttpKernel\Kernel->boot() at /xx/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /xx/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121
Symfony\Component\Console\Application->run() at /xx/bin/console:28
看起来像是容器遵从性的问题:
某些旧安装程序通过了验证,但DependencyInjection编译器未正确使用它
我有以下几个问题:
- 如何调试它李>
- 什么会导致这样的问题
- 如何修复它李>
谢谢 您只是在“php bin/console”中键入,还是在命令行中键入了更多内容?在我看来,您集成的Sonata Core包缺少第三个注入参数。和往常一样-你清除缓存了吗?@pogeybait-我在尝试不同的命令,错误总是最严重的same@LBA-当然有:-)新的缓存和新的供应商。。。今天我将尝试另一次尝试我想我需要一步一步地调试整个配置添加组件。。。