Symfony2:如何完全禁用探查器?

mes*_*age 3 php profiler symfony

即使我从所有config*.yml文件中删除web_profiler...我得到了

RuntimeException: You need to enable either the SQLite3 or PDO_SQLite extension for the profiler to run properly.
Run Code Online (Sandbox Code Playgroud)

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

有小费吗?

UPD:在FrameworkExtension.php中发表评论

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

但这不是一个好的解决方案

rya*_*pro 7

或者您可以更改config_dev.yml:

web_profiler:
    toolbar: false
Run Code Online (Sandbox Code Playgroud)