PHP Class Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener

The onKernelResponse method must be connected to the kernel.response event. The WDT is only injected on well-formed HTML (with a proper tag). This means that the WDT is never included in sub-requests or ESI requests.
Author: Fabien Potencier ([email protected])
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
显示文件 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$interceptRedirects
$mode
$templating

Public Methods

Method Description
__construct ( TwigEngine $templating, $interceptRedirects = false, $mode = self::ENABLED )
isEnabled ( )
isVerbose ( )
onKernelResponse ( FilterResponseEvent $event )

Protected Methods

Method Description
injectToolbar ( Response $response ) Injects the web debug toolbar into the given Response.

Method Details

__construct() public method

public __construct ( TwigEngine $templating, $interceptRedirects = false, $mode = self::ENABLED )
$templating Symfony\Bundle\TwigBundle\TwigEngine

injectToolbar() protected method

Injects the web debug toolbar into the given Response.
protected injectToolbar ( Response $response )
$response Symfony\Component\HttpFoundation\Response A Response instance

isEnabled() public method

public isEnabled ( )

isVerbose() public method

public isVerbose ( )

onKernelResponse() public method

public onKernelResponse ( FilterResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterResponseEvent

Property Details

$interceptRedirects protected_oe property

protected $interceptRedirects

$mode protected_oe property

protected $mode

$templating protected_oe property

protected $templating