任何想法是什么导致了这个错误?在我的本地 MAMP 环境中,我没有任何问题,一旦推送到 Ec2 实例,它就会开始出现。
ForbiddenOverwriteException: Configuration path "security.access_control" cannot be overwritten. You have to define all options for this path, and any of its sub-paths in one configuration section.
in /var/www/html/vendor/symfony/src/Symfony/Component/Config/Definition/BaseNode.php line 156
at BaseNode->merge() in /var/www/html/vendor/symfony/src/Symfony/Component/Config/Definition/ArrayNode.php line 347
at ArrayNode->mergeValues() in /var/www/html/vendor/symfony/src/Symfony/Component/Config/Definition/BaseNode.php line 167
at BaseNode->merge() in /var/www/html/vendor/symfony/src/Symfony/Component/Config/Definition/Processor.php line 36
at Processor->process() in /var/www/html/vendor/symfony/src/Symfony/Component/Config/Definition/Processor.php line 52
at Processor->processConfiguration() in /var/www/html/vendor/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/Extension.php line 101
at Extension->processConfiguration() in /var/www/html/vendor/symfony/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php line 53
at SecurityExtension->load() in /var/www/html/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php line 42
at MergeExtensionConfigurationPass->process() in /var/www/html/vendor/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php line 39
at MergeExtensionConfigurationPass->process() in /var/www/html/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php line 119
at Compiler->compile() in /var/www/html/vendor/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php line 437
at ContainerBuilder->compile() in /var/www/html/app/bootstrap.php.cache line 872
at Kernel->buildContainer() in /var/www/html/app/bootstrap.php.cache line 783
at Kernel->initializeContainer() in /var/www/html/app/bootstrap.php.cache line 517
at Kernel->boot() in /var/www/html/app/bootstrap.php.cache line 548
at Kernel->handle() in /var/www/html/web/app.php line 17