24 lines
626 B
PHP
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();
|
|
}
|
|
}
|