From e7dce6b8a8f881b7cf2f407ad08e29ab1194b503 Mon Sep 17 00:00:00 2001 From: JiaJia Ji Date: Mon, 8 Jan 2024 12:59:59 +0100 Subject: [PATCH] replace with UserAwareController --- src/Controller/FindologicController.php | 4 ++-- src/Controller/VoucherController.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Controller/FindologicController.php b/src/Controller/FindologicController.php index f92c6d12..30ddf52f 100644 --- a/src/Controller/FindologicController.php +++ b/src/Controller/FindologicController.php @@ -16,8 +16,8 @@ namespace Pimcore\Bundle\EcommerceFrameworkBundle\Controller; -use Pimcore\Controller\FrontendController; use Pimcore\Controller\KernelControllerEventInterface; +use Pimcore\Controller\UserAwareController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Event\ControllerEvent; @@ -29,7 +29,7 @@ * * @internal */ -class FindologicController extends FrontendController implements KernelControllerEventInterface +class FindologicController extends UserAwareController implements KernelControllerEventInterface { public function onKernelControllerEvent(ControllerEvent $event): void { diff --git a/src/Controller/VoucherController.php b/src/Controller/VoucherController.php index cdf3f53f..09491f6d 100644 --- a/src/Controller/VoucherController.php +++ b/src/Controller/VoucherController.php @@ -17,8 +17,8 @@ namespace Pimcore\Bundle\EcommerceFrameworkBundle\Controller; use Pimcore\Bundle\EcommerceFrameworkBundle\VoucherService\TokenManager\ExportableTokenManagerInterface; -use Pimcore\Controller\FrontendController; use Pimcore\Controller\KernelControllerEventInterface; +use Pimcore\Controller\UserAwareController; use Pimcore\Model\DataObject; use Pimcore\Model\DataObject\Localizedfield; use Pimcore\Model\DataObject\OnlineShopVoucherSeries; @@ -37,7 +37,7 @@ * * @internal */ -class VoucherController extends FrontendController implements KernelControllerEventInterface +class VoucherController extends UserAwareController implements KernelControllerEventInterface { protected TokenStorageUserResolver $tokenResolver;