php – Symfony2:如何完全禁用探查器?
发布时间:2020-12-13 22:03:46 所属栏目:PHP教程 来源:网络整理
导读:即使我从所有配置* .yml文件中删除web_profiler …我得到了 RuntimeException: You need to enable either the SQLite3 or PDO_SQLite extension for the profiler to run properly. 我只是不想在我的系统上安装sqlite,我找不到如何完全关闭探查器… 有小费
即使我从所有配置* .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); } 但这不是一个好的解决方案 解决方法
看看你的app / AppKernel.php.
删除线 $bundles[] = new SymfonyBundleWebProfilerBundleWebProfilerBundle(); 应该做的伎俩!现在捆绑包永远不会被加载,因此现在需要SQLite2数据库. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |