PHP Class Elcodi\Store\ProductBundle\Controller\PurchasableController

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
relatedAction ( $id ) : array Purchasable related view
viewAction ( integer $id, string $slug ) : array Purchasable view

Private Methods

Method Description
resolveTemplateName ( Elcodi\Component\Product\Entity\Interfaces\PurchasableInterface $purchasable ) : string Resolve view given the purchasable instance
resolveVariableName ( Elcodi\Component\Product\Entity\Interfaces\PurchasableInterface $purchasable ) : string Resolve the variable name given the purchasable instance

Method Details

relatedAction() public method

Purchasable related view
public relatedAction ( $id ) : array
return array

viewAction() public method

Purchasable view
public viewAction ( integer $id, string $slug ) : array
$id integer Purchasable id
$slug string Product slug
return array