PHP Class Sulu\Bundle\WebsiteBundle\EventListener\AppendAnalyticsListener

Datei anzeigen Open project: sulu/sulu

Public Methods

Method Description
__construct ( Symfony\Component\Templating\EngineInterface $engine, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer, AnalyticsRepository $analyticsRepository, $environment )
onResponse ( FilterResponseEvent $event ) Appends analytics scripts into body.

Method Details

__construct() public method

public __construct ( Symfony\Component\Templating\EngineInterface $engine, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer, AnalyticsRepository $analyticsRepository, $environment )
$engine Symfony\Component\Templating\EngineInterface
$requestAnalyzer Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface
$analyticsRepository Sulu\Bundle\WebsiteBundle\Entity\AnalyticsRepository

onResponse() public method

Appends analytics scripts into body.
public onResponse ( FilterResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterResponseEvent