Files
kupshop/bundles/KupShop/CatalogBundle/Controller/ProducerController.php
2025-08-02 16:30:27 +02:00

24 lines
626 B
PHP

<?php
namespace KupShop\CatalogBundle\Controller;
use KupShop\CatalogBundle\View\ProducersListView;
use KupShop\KupShopBundle\Routing\SimpleTranslatedRoute;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
class ProducerController extends AbstractController
{
/**
* @SimpleTranslatedRoute("producers")
*
* @return \Symfony\Component\HttpFoundation\Response
*/
public function listAction(Request $request, ProducersListView $view)
{
$view->setSorting($request->get('sort'));
return $view->getResponse();
}
}