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