Common/EventListener/AbstractSaleListener.php
public function onPreCreate(ResourceEventInterface $event)
    {
        $sale = $this->getSaleFromEvent($event);

        $this->updateInformation($sale);

        $this->pricingUpdater->updateVatNumberSubject($sale);
    }
public function onPreCreate(ResourceEventInterface $event)
    {
        $sale = $this->getSaleFromEvent($event);

        $this->updateInformation($sale);

        $this->pricingUpdater->updateVatNumberSubject($sale);
    }
public function onPreCreate ( ResourceEventInterface $ event ) { $ sale = $ this -> getSaleFromEvent ( $ event ) ; $ this -> updateInformation ( $ sale ) ; $ this -> pricingUpdater -> updateVatNumberSubject ( $ sale ) ; }
Pre create event handler.

@param ResourceEventInterface $event
Pre create event handler .