Skip to content

Commit

Permalink
Merge pull request #5 from NicolasBarbey/main
Browse files Browse the repository at this point in the history
fix refresh order
  • Loading branch information
NicolasBarbey authored Jan 23, 2025
2 parents 518aa8d + 657bfb8 commit ee4a958
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>2.5.1</version>
<version>2.5.2</version>
<authors>
<author>
<name>Franck Allimant</name>
Expand Down
6 changes: 3 additions & 3 deletions Controller/OrderEditController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use PayzenEmbedded\Form\TransactionUpdateForm;
use PayzenEmbedded\LyraClient\LyraTransactionGetWrapper;
use PayzenEmbedded\PayzenEmbedded;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Thelia\Controller\Admin\BaseAdminController;
use Thelia\Core\Security\AccessManager;
use Thelia\Core\Security\Resource\AdminResources;
Expand All @@ -42,7 +42,7 @@
class OrderEditController extends BaseAdminController
{
#[Route('/update-transaction/{orderId}', name: 'update_transaction', methods: 'POST')]
public function updateTransaction(EventDispatcher $dispatcher, Translator $translator, $orderId)
public function updateTransaction(EventDispatcherInterface $dispatcher, Translator $translator, $orderId)
{
if (null !== $response = $this->checkAuth(AdminResources::MODULE, 'PayzenEmbedded', AccessManager::UPDATE)) {
return $response;
Expand Down Expand Up @@ -96,7 +96,7 @@ public function updateTransaction(EventDispatcher $dispatcher, Translator $trans
}

#[Route('/refresh-transaction/{orderId}', name: 'refresh_transaction', methods: 'POST')]
public function refreshTransaction(EventDispatcher $dispatcher, Translator $translator, $orderId)
public function refreshTransaction(EventDispatcherInterface $dispatcher, Translator $translator, $orderId)
{
if (null !== $response = $this->checkAuth(AdminResources::MODULE, 'PayzenEmbedded', AccessManager::UPDATE)) {
return $response;
Expand Down

0 comments on commit ee4a958

Please sign in to comment.