php - Symfony2 : How to disable profiler entirely?

标签 php symfony profiler

即使我从所有 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/

相关文章:

mysql - 语法错误第 0 行,第 83 列 : Error: Expected end of string, 得到 'cbfde50'

c# - Visual Studio Profiler 与 Release模式——有什么区别?

perl - 为什么 NYTProf 的逐行统计数据与总数不匹配?

ios - Profiler 中的分配工具未显示应用程序级别类

javascript - cakePhp - 访问 webroot 内的文件夹内容

php - 如何将这些查询添加在一起(Yii2)?

Symfony Controller 嵌入错误 : The controller for URI "/_fragment" is not callable

php - 如何使用 Symfony Validation 验证数组键?

php/mysql 数据库更新后的 Javascript 弹出窗口

php - Swift4 - 错误域=NSCocoaErrorDomain 代码=4865