class ProductCompareController extends Controller

Class ProductCompareController defines routes for compare

Methods

array
productCompareShowAction(ArrayCollection $productShowCompare)

Frontend route for listing all compare lists

JsonResponse
productCompareAction(ArrayCollection $productCompare)

API route for adding product to compare if user not logged

JsonResponse
compareAddNewListAction(ArrayCollection $productCompareNewJSON)

API route for adding new compare list

JsonResponse
compareRemoveProductFromListAction(ArrayCollection $productCompareRemoveProduct)

API route for removing product from compare list

JsonResponse
compareListDeleteAction(ArrayCollection $productCompareDeleteListJSON)

API route for deleting compare list

Response
productCompareAddToListAction(ArrayCollection $productCompareAddProductJSON)

API route for adding product to compare if user logged

Details

at line 43
array productCompareShowAction(ArrayCollection $productShowCompare)

Frontend route for listing all compare lists

Parameters

ArrayCollection $productShowCompare

Return Value

array

See also

ProductShowCompareConverter

at line 62
JsonResponse productCompareAction(ArrayCollection $productCompare)

API route for adding product to compare if user not logged

Parameters

ArrayCollection $productCompare

Return Value

JsonResponse

See also

ProductCompareConverter

at line 77
JsonResponse compareAddNewListAction(ArrayCollection $productCompareNewJSON)

API route for adding new compare list

Parameters

ArrayCollection $productCompareNewJSON

Return Value

JsonResponse

See also

ProductCompareNewJSONConverter

at line 110
JsonResponse compareRemoveProductFromListAction(ArrayCollection $productCompareRemoveProduct)

API route for removing product from compare list

Parameters

ArrayCollection $productCompareRemoveProduct

Return Value

JsonResponse

See also

ProductCompareRemoveProductConverter

at line 125
JsonResponse compareListDeleteAction(ArrayCollection $productCompareDeleteListJSON)

API route for deleting compare list

Parameters

ArrayCollection $productCompareDeleteListJSON

Return Value

JsonResponse

See also

ProductCompareDeleteListJSONConverter

at line 140
Response productCompareAddToListAction(ArrayCollection $productCompareAddProductJSON)

API route for adding product to compare if user logged

Parameters

ArrayCollection $productCompareAddProductJSON

Return Value

Response

See also

ProductCompareAddProductJSONConverter