From 99e34d0517e3be5384642fe66da5d996351b0d7e Mon Sep 17 00:00:00 2001 From: nuryagdym Date: Fri, 29 Nov 2024 12:11:07 +0100 Subject: [PATCH] Update THREED-PAYMENT-EXAMPLE.md --- docs/THREED-PAYMENT-EXAMPLE.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/THREED-PAYMENT-EXAMPLE.md b/docs/THREED-PAYMENT-EXAMPLE.md index 2403f61e..c7b721ce 100644 --- a/docs/THREED-PAYMENT-EXAMPLE.md +++ b/docs/THREED-PAYMENT-EXAMPLE.md @@ -133,6 +133,12 @@ if (\Mews\Pos\PosInterface::MODEL_3D_HOST !== $paymentModel) { // OZEL DURUMLAR ICIN KODLAR START // ============================================================================================ try { + /** + * NOT!!! event listenerin çalışması için $eventDispatcher objesi $pos objesi oluştururken + * kullandığınız $eventDıspatcher ile aynısi olması gerekiyor! + * $pos = \Mews\Pos\Factory\PosFactory::createPosGateway($account, $config, $eventDispatcher); + * $eventDispatcher'i tekrardan oluşturursanız, listener çalışmaz! + */ /** @var \Symfony\Component\EventDispatcher\EventDispatcher $eventDispatcher */ $eventDispatcher->addListener(RequestDataPreparedEvent::class, function (RequestDataPreparedEvent $event) { /**