pricingUtil = $pricingUtil; } public static function getSubscribedEvents() { return [ PurchaseStateCreatedEvent::class => [ ['updatePrices', 200], ], ]; } public function updatePrices(PurchaseStateCreatedEvent $event): void { // ceneni kosiku pres SAP je povoleno pouze pro CZK menu if (Contexts::get(CurrencyContext::class)->getActiveId() !== 'CZK') { return; } $this->pricingUtil->updatePurchaseState( $event->getPurchaseState() ); } }