我在“模块”部分的Prestashop管理面板中收到以下错误,该错误使我无法配置任何模块。
从5.2版开始,不再启用“ sensio_framework_extra.router.annotations”配置。将其设置为false并使用Symfony本身的“ Symfony \ Component \ Routing \ Annotation \ Route”注释。 隐藏上下文显示跟踪
[▼
"exception" => SilencedErrorContext {#5077 ▼
+count: 1
-severity: E_USER_DEPRECATED
trace: {▼
/home/desigssq/public_html/new17/vendor/sensio/framework-extra-bundle/DependencyInjection/SensioFrameworkExtraExtension.php:41 {▼
› if ($config['router']['annotations']) {
› @trigger_error(sprintf('Enabling the "sensio_framework_extra.router.annotations" configuration is deprecated since version 5.2. Set it to false and use the "%s" annotation from Symfony itself.', \Symfony\Component\Routing\Annotation\Route::class), E_USER_DEPRECATED);
›
}
/home/desigssq/public_html/new17/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php:71 {▼
›
› $extension->load($config, $tmpContainer);
› } catch (\Exception $e) {
}
}
}
]
答案 0 :(得分:0)
将以下几行添加到您的config.yml
文件中:
sensio_framework_extra:
router:
annotations: false