Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener
WebDebugToolbarListener injects the Web Debug Toolbar.
The onKernelResponse method must be connected to the kernel.response event.
The WDT is only injected on well-formed HTML (with a proper </body> tag).
This means that the WDT is never included in sub-requests or ESI requests.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class WebDebugToolbarListener
implements
EventSubscriberInterface
{
- // constants
- const DISABLED = 1;
- const ENABLED = 2;
- // members
- protected $twig;
- protected $interceptRedirects;
- protected $mode;
- protected $position;
- // methods
- public void __construct()
- public void isEnabled()
- public void onKernelResponse()
- protected void injectToolbar()
- public static void getSubscribedEvents()
Hierarchy
Constants
Name | Value |
---|---|
DISABLED | 1 |
ENABLED | 2 |
Members
protected
- $interceptRedirects
- $mode
- $position
- $twig