Skip to content

Commit

Permalink
[shopsys] added quick search in promo codes (#2786)
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmannmartin authored Sep 18, 2023
1 parent 9397719 commit 182a0ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controller/Admin/PromoCodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Shopsys\FrameworkBundle\Model\Order\PromoCode\PromoCodeDataFactoryInterface;
use Shopsys\FrameworkBundle\Model\Order\PromoCode\PromoCodeFacade;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;

class PromoCodeController extends AdminBaseController
Expand All @@ -35,8 +36,10 @@ public function __construct(

/**
* @Route("/promo-code/list")
* @param \Symfony\Component\HttpFoundation\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function listAction()
public function listAction(Request $request): Response
{
/** @var \Shopsys\FrameworkBundle\Model\Administrator\Administrator $administrator */
$administrator = $this->getUser();
Expand Down

0 comments on commit 182a0ff

Please sign in to comment.