trait CartTrait

managed cart

Trait CartTrait

Methods

getCart( EventDispatcherInterface $dispatcher, Request $request)

search if cart already exists in session. If not try to create a new one or duplicate an old one.

Details

at line 45
Cart getCart( EventDispatcherInterface $dispatcher, Request $request)

search if cart already exists in session. If not try to create a new one or duplicate an old one.

Parameters

EventDispatcherInterface $dispatcher the event dispatcher
Request $request

Return Value

Cart