class ProductPaymentTypeEventContainer

Class ProductPaymentTypeEventContainer is injected as empire_product_for_payment_type.event.container. This container is connecting ProductPaymentTypeManager manager to other services

Constants

PRODUCT_FOR_PAYMENT_TYPE

Properties

protected ContainerInterface $container

Methods

__construct(ContainerInterface $container)

ProductPaymentTypeEventContainer constructor.

setProductForPaymentTypeToCache(string $data)

Set string representation of product payment types to cache

array
getProductForPaymentTypeFromCache()

Get string representation of product payment types from cache

dispatchChangeEvent()

Dispatch event for cache

string
getDefaultLocale()

Get locale from current request

Details

at line 33
__construct(ContainerInterface $container)

ProductPaymentTypeEventContainer constructor.

Parameters

ContainerInterface $container

at line 41
ProductManager getProductManager()

Return Value

ProductManager

at line 50
setProductForPaymentTypeToCache(string $data)

Set string representation of product payment types to cache

Parameters

string $data

at line 59
array getProductForPaymentTypeFromCache()

Get string representation of product payment types from cache

Return Value

array

at line 67
dispatchChangeEvent()

Dispatch event for cache

at line 76
string getDefaultLocale()

Get locale from current request

Return Value

string