class StatisticsListener

Class StatisticsListener is injected as alligator.statistics.listener service. StatisticsListener is listener class for handling a logic for dispatched events

Constants

ROUTES_FOR_SOCKET

Routes that should be sent via socket

VISITED_ACTIONS

CART_ACTIONS

Methods

__construct(ContainerInterface $container)

StatisticsListener constructor.

onPageVisit(PostResponseEvent $event)

Persist shop visit statistic and dispatch event for notifying all subscribers. Executes on kernel.terminate event

getAddedRemovedProductOlapData(EventWithResult $event)

Find added and removed products for OLAP

Details

at line 58
__construct(ContainerInterface $container)

StatisticsListener constructor.

Parameters

ContainerInterface $container

at line 72
onPageVisit(PostResponseEvent $event)

Persist shop visit statistic and dispatch event for notifying all subscribers. Executes on kernel.terminate event

Parameters

PostResponseEvent $event

Exceptions

NonUniqueResultException
ORMException
OptimisticLockException

at line 188
getAddedRemovedProductOlapData(EventWithResult $event)

Find added and removed products for OLAP

Parameters

EventWithResult $event

Exceptions

DBALException