PHP Class Elcodi\Store\ProductBundle\Controller\CategoryController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller, use trait Elcodi\Store\CoreBundle\Controller\Traits\TemplateRenderTrait
Afficher le fichier Open project: elcodi/bamboo

Méthodes publiques

Méthode Description
navAction ( ) : Response Renders the category nav component
viewAction ( Elcodi\Component\Product\Entity\Interfaces\CategoryInterface $category, $slug ) : Response Render all category purchasables

Méthodes protégées

Méthode Description
getCurrentCategoryGivenRequest ( Request $request ) : Elcodi\Component\Product\Entity\Interfaces\CategoryInterface | null Given a request, return the current highlight-able category

Method Details

getCurrentCategoryGivenRequest() protected méthode

Given a request, return the current highlight-able category
protected getCurrentCategoryGivenRequest ( Request $request ) : Elcodi\Component\Product\Entity\Interfaces\CategoryInterface | null
$request Symfony\Component\HttpFoundation\Request Request
Résultat Elcodi\Component\Product\Entity\Interfaces\CategoryInterface | null

navAction() public méthode

Renders the category nav component
public navAction ( ) : Response
Résultat Symfony\Component\HttpFoundation\Response Response

viewAction() public méthode

Render all category purchasables
public viewAction ( Elcodi\Component\Product\Entity\Interfaces\CategoryInterface $category, $slug ) : Response
$category Elcodi\Component\Product\Entity\Interfaces\CategoryInterface Category
Résultat Symfony\Component\HttpFoundation\Response Response