CartMapperFactory
in package
FinalYes
Picks the cart storage by `%eshop.cart.storage%`.
Both concrete implementations are autowired: false in the DI config, so the only autowirable
source of CartMapperInterface is the result of this factory; CartService depends on it and
not on a concrete variant.
Table of Contents
Properties
Methods
- __construct() : mixed
- create() : CartMapperInterface
Properties
$apiMapper read-only
private
CartMapper
$apiMapper
$sessionMapper read-only
private
CartMapper
$sessionMapper
Methods
__construct()
public
__construct(CartMapper $sessionMapper, CartMapper $apiMapper) : mixed
Parameters
- $sessionMapper : CartMapper
- $apiMapper : CartMapper
create()
public
create(string $storage) : CartMapperInterface
Parameters
- $storage : string