PHP Class Sonata\ProductBundle\Controller\CatalogController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: sonata-project/ecommerce

Public Methods

Method Description
indexAction ( ) : Response Index action for catalog.

Protected Methods

Method Description
getCategoryManager ( ) : Sonata\ClassificationBundle\Entity\CategoryManager
getCurrencyDetector ( ) : CurrencyDetector
getProductPool ( ) : Pool
getProductSetManager ( ) : ProductSetManager
getProviderFromCategory ( Sonata\ClassificationBundle\Model\CategoryInterface $category = null ) : null | Sonata\Component\Product\ProductProviderInterface Gets the product provider associated with $category if any.
retrieveCategoryFromQueryString ( ) : Sonata\ClassificationBundle\Model\CategoryInterface | null Retrieve Category from its id and slug, if any.

Method Details

getCategoryManager() protected method

protected getCategoryManager ( ) : Sonata\ClassificationBundle\Entity\CategoryManager
return Sonata\ClassificationBundle\Entity\CategoryManager

getCurrencyDetector() protected method

protected getCurrencyDetector ( ) : CurrencyDetector
return Sonata\Component\Currency\CurrencyDetector

getProductPool() protected method

protected getProductPool ( ) : Pool
return Sonata\Component\Product\Pool

getProductSetManager() protected method

protected getProductSetManager ( ) : ProductSetManager
return Sonata\ProductBundle\Entity\ProductSetManager

getProviderFromCategory() protected method

Gets the product provider associated with $category if any.
protected getProviderFromCategory ( Sonata\ClassificationBundle\Model\CategoryInterface $category = null ) : null | Sonata\Component\Product\ProductProviderInterface
$category Sonata\ClassificationBundle\Model\CategoryInterface
return null | Sonata\Component\Product\ProductProviderInterface

indexAction() public method

Index action for catalog.
public indexAction ( ) : Response
return Symfony\Component\HttpFoundation\Response

retrieveCategoryFromQueryString() protected method

Retrieve Category from its id and slug, if any.
protected retrieveCategoryFromQueryString ( ) : Sonata\ClassificationBundle\Model\CategoryInterface | null
return Sonata\ClassificationBundle\Model\CategoryInterface | null