PHP Class Elcodi\Store\MetricBundle\EventListener\AddOrderCompletedMetricEventListener

Mostrar archivo Open project: elcodi/bamboo

Public Methods

Method Description
__construct ( Elcodi\Component\Metric\Core\Services\MetricManager $metricManager, Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store ) Construct
addMetric ( Elcodi\Component\Cart\Event\OrderOnCreatedEvent $event ) Create metrics about the order creation

Method Details

__construct() public method

Construct
public __construct ( Elcodi\Component\Metric\Core\Services\MetricManager $metricManager, Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store )
$metricManager Elcodi\Component\Metric\Core\Services\MetricManager Metric manager
$store Elcodi\Component\Store\Entity\Interfaces\StoreInterface Store

addMetric() public method

Create metrics about the order creation
public addMetric ( Elcodi\Component\Cart\Event\OrderOnCreatedEvent $event )
$event Elcodi\Component\Cart\Event\OrderOnCreatedEvent Event