更新时间:2022-06-27 00:08:57
Symfony 中最渴望的组件是分析器.如果您在某些特定操作中不需要分析器,您可以通过代码禁用它:
The most eager component in Symfony is a profiler. If you don't need profiler in some particular actions you can disable it via code:
if ($this->container->has('profiler'))
{
$this->container->get('profiler')->disable();
}
您也可以在配置中设置全局参数:
You can also set global parameter in config:
framework:
profiler:
collect: false