How to show bar Symfony Web Profiler only for certain users?

Good day,

Actually the question in the title.
I want to show the panel only for the developers (role).
Is it possible to implement with standard tools without zapilivanija?

The option of connecting styles that hide the panel comes off.

Symfony 2.3
October 3rd 19 at 04:10
2 answers
October 3rd 19 at 04:12
Solution
via DI substitute the class Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener on their implemented it security for role checks, and make a wrapper for the method injectToolbar.
thank you - Ahmad38 commented on October 3rd 19 at 04:15
October 3rd 19 at 04:14
For developers a single point of entry — app_dev.php
Yes, but I would like it is for roles to do. - Ahmad38 commented on October 3rd 19 at 04:17

Find more questions by tags Symfony