<?phpnamespace App\Utils\OrderCreator\Event\Handler;use App\Utils\CouponClass;use App\Utils\OrderCreator\Event\OrderPlacingStarted;use Symfony\Component\EventDispatcher\Attribute\AsEventListener;#[AsEventListener(event: OrderPlacingStarted::class)]final class RefreshCartCouponHandler{ public function __construct( private readonly CouponClass $couponClass, ) { } public function __invoke(OrderPlacingStarted $event): void { $this->couponClass->refreshCartCoupon($event->getCart()); }}