<?php
namespace App\EventListener\Client\PointOfSale;
use App\Entity\Client\PointOfSale\PointOfSaleMove;
use App\EventListener\GenericEvent;
use App\Service\Client\PointOfSale\PointOfSaleMoveManager;
class PointOfSaleMoveListener
{
private $pointOfSaleMoveManager;
public function __construct(PointOfSaleMoveManager $pointOfSaleMoveManager)
{
$this->pointOfSaleMoveManager = $pointOfSaleMoveManager;
}
public function pre(GenericEvent $genericEvent)
{
if (!$genericEvent->getSubject() instanceof PointOfSaleMove) {
return;
}
$this->pointOfSaleMoveManager->pre($genericEvent);
}
}