suncat2000 / MobileDetectBundle

Symfony 2/3/4 bundle for detect mobile devices, manage mobile view and redirect to the mobile and tablet version.
397 stars 153 forks source link

[Feature request] Add configuration do disable or enable debug bar #137

Open walva opened 4 years ago

walva commented 4 years ago

Hello there!

First of all, thank you for this bundle, very useful! Our website is responsive and some advanced features were not working on iOS (send text message for example shortcut button for example).

The bundle provides a new icon in the debug bar which is very handy, but I would like to display it from time to time instead of all the time. The debug bar is getting bigger and bigger and it's becoming annoying for debugging templates.

I'm very new to GitHub and PR but I will definitely try to help you with this one!

I suggest to implement a configuration like this:

#app/config/config.yml
mobile_detect:
   debug_bar_enabled: false

WDYT?

Best regards.

Chris8934 commented 4 years ago

It would be a workaround for the actual problem that Toolbar is not working. (Symfony 3.4.35)

The profiler template "MobileDetectBundle:Collector:device.html.twig" for data collector "device.collector" does not exist.