Skip to content

Commit 551403e

Browse files
authored
Fix SOAP request failure
1 parent 0b24459 commit 551403e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Plugin/FrontControllerDispatch.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
namespace Opengento\WebapiLogger\Plugin;
1010

11+
use Magento\Framework\App\FrontControllerInterface;
1112
use Magento\Framework\App\RequestInterface;
1213
use Magento\Framework\Stdlib\DateTime\DateTime;
1314
use Magento\Webapi\Controller\Rest;
@@ -22,7 +23,7 @@ public function __construct(
2223
private LogHandle $logHandle
2324
) {}
2425

25-
public function beforeDispatch(Rest $subject, RequestInterface $request): array
26+
public function beforeDispatch(FrontControllerInterface $subject, RequestInterface $request): array
2627
{
2728
if ($this->config->isEnabled() && !$request->isXmlHttpRequest()) {
2829
$this->logHandle->before(
@@ -38,7 +39,7 @@ public function beforeDispatch(Rest $subject, RequestInterface $request): array
3839
return [$request];
3940
}
4041

41-
public function afterDispatch(Rest $subject, $result, RequestInterface $request): mixed
42+
public function afterDispatch(FrontControllerInterface $subject, $result, RequestInterface $request): mixed
4243
{
4344
if ($this->config->isEnabled() && !$request->isXmlHttpRequest()) {
4445
$exceptions = $result->getException();

0 commit comments

Comments
 (0)