27 lines
774 B
PHP
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();
|
|
}
|
|
}
|