gpt4 book ai didi

php - Symfony2 : How to disable profiler entirely?

转载 作者:可可西里 更新时间:2023-11-01 00:00:52 26 4
gpt4 key购买 nike

即使我从所有 config*.yml 文件中删除 web_profiler ...我越来越

RuntimeException: You need to enable either the SQLite3 or PDO_SQLite extension for the profiler to run properly.

我只是不想在我的系统上安装 sqlite,而且我找不到如何完全关闭分析器...

有什么建议吗?

UPD:在 FrameworkExtension.php 中评论

if (isset($config['profiler'])) {
$this->registerProfilerConfiguration($config['profiler'], $container, $loader);
}

但这不是好的解决方案

最佳答案

或者您可以在 config_dev.yml 中进行更改:

web_profiler:
toolbar: false

关于php - Symfony2 : How to disable profiler entirely?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10852174/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com