From d224c20da630fb29bdd86971666dcbd1c07a3ef6 Mon Sep 17 00:00:00 2001 From: JiaJia Ji Date: Mon, 8 Jan 2024 12:56:23 +0100 Subject: [PATCH] add permission check --- src/Controller/ConfigController.php | 3 ++- src/Controller/FindologicController.php | 3 ++- src/Controller/IndexController.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Controller/ConfigController.php b/src/Controller/ConfigController.php index 61f62ae5..9c22a7f6 100644 --- a/src/Controller/ConfigController.php +++ b/src/Controller/ConfigController.php @@ -16,6 +16,7 @@ namespace Pimcore\Bundle\EcommerceFrameworkBundle\Controller; +use Pimcore\Controller\KernelControllerEventInterface; use Pimcore\Controller\UserAwareController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Event\ControllerEvent; @@ -29,7 +30,7 @@ * * @internal */ -class ConfigController extends UserAwareController +class ConfigController extends UserAwareController implements KernelControllerEventInterface { /** * ConfigController constructor. diff --git a/src/Controller/FindologicController.php b/src/Controller/FindologicController.php index d022f115..f92c6d12 100644 --- a/src/Controller/FindologicController.php +++ b/src/Controller/FindologicController.php @@ -17,6 +17,7 @@ namespace Pimcore\Bundle\EcommerceFrameworkBundle\Controller; use Pimcore\Controller\FrontendController; +use Pimcore\Controller\KernelControllerEventInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Event\ControllerEvent; @@ -28,7 +29,7 @@ * * @internal */ -class FindologicController extends FrontendController +class FindologicController extends FrontendController implements KernelControllerEventInterface { public function onKernelControllerEvent(ControllerEvent $event): void { diff --git a/src/Controller/IndexController.php b/src/Controller/IndexController.php index 298cb9fb..e1c41688 100644 --- a/src/Controller/IndexController.php +++ b/src/Controller/IndexController.php @@ -19,6 +19,7 @@ use Pimcore\Bundle\EcommerceFrameworkBundle\Event\AdminEvents; use Pimcore\Bundle\EcommerceFrameworkBundle\Factory; use Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\ProductList\ProductListInterface; +use Pimcore\Controller\KernelControllerEventInterface; use Pimcore\Controller\Traits\JsonHelperTrait; use Pimcore\Controller\UserAwareController; use Symfony\Component\EventDispatcher\GenericEvent; @@ -36,7 +37,7 @@ * * @internal */ -class IndexController extends UserAwareController +class IndexController extends UserAwareController implements KernelControllerEventInterface { use JsonHelperTrait;