PHP Class Elcodi\Store\ProductBundle\Controller\CategoryController

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

Public Methods

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

Protected Methods

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

Method Details

getCurrentCategoryGivenRequest() protected method

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
return Elcodi\Component\Product\Entity\Interfaces\CategoryInterface | null

navAction() public method

Renders the category nav component
public navAction ( ) : Response
return Symfony\Component\HttpFoundation\Response Response

viewAction() public method

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