Files
kupshop/bundles/External/LeaflyBundle/Controller/LeaflyController.php
2025-08-02 16:30:27 +02:00

27 lines
774 B
PHP

<?php
namespace External\LeaflyBundle\Controller;
use External\LeaflyBundle\View\QuickBuyVariationsView;
use KupShop\KupShopBundle\Exception\PermanentRedirectException;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
class LeaflyController extends AbstractController
{
/**
* @Route("/quick-buy-variations/{id}/", requirements={"id":"\d+"})
*
* @return \Symfony\Component\HttpFoundation\Response
*
* @throws PermanentRedirectException
*/
public function quickBuyVariationsAction(Request $request, QuickBuyVariationsView $view, int $id)
{
$view->setProductId($id);
return $view->getResponse();
}
}