How do I disable the Symfony 2 profiler bar?

前端 未结 8 1422
清酒与你
清酒与你 2021-01-30 10:29

It\'s not adding anything and it makes the page slower and I want it gone. Don\'t ask. There\'s little about the profiler on the website and nothing in the app config.

8条回答
  •  醉酒成梦
    2021-01-30 11:22

    If you have created a new Symfony project since Symfony 2.5, these parameters are set in app/config/paramaters.yml

    parameters:
        # ...
        debug_toolbar: true
        debug_redirects: false
    

    Just set debug_toolbar to false.

提交回复
热议问题