GiftCardEventContainer
class GiftCardEventContainer
Class GiftCardEventContainer is injected as empire_gift_card_plugin.event_container. This container is connecting GiftCardManager to other services
Constants
| MAIL_TEMPLATE |
Path to mail template |
Properties
| protected ContainerInterface | $container |
Methods
__construct(ContainerInterface $container)
No description
User|null
getCurrentUser()
Get current user
getGiftCardSettings()
Get current GiftCardSettings
object|Payum
getPayum()
Get Peyum service
array
getAllCurrencies()
Get currency list
float|int
getCurrencyRatioForPair(string $isoFrom, string $isoTo)
Get currency ratio for currencies
string
getCurrentCurrency()
Get current currency
sendCodeByMail(string $from, string $to, string $subject, string $content, GiftCard $card)
Send gift card code by mail
Order|null
getLastUnfinishedOrderForUser()
Get last unfinished order for user
Details
at line 41
__construct(ContainerInterface $container)
at line 52
User|null
getCurrentUser()
Get current user
at line 63
GiftCardSettings
getGiftCardSettings()
Get current GiftCardSettings
at line 72
object|Payum
getPayum()
Get Peyum service
at line 83
array
getAllCurrencies()
Get currency list
at line 97
float|int
getCurrencyRatioForPair(string $isoFrom, string $isoTo)
Get currency ratio for currencies
at line 106
string
getCurrentCurrency()
Get current currency
at line 120
sendCodeByMail(string $from, string $to, string $subject, string $content, GiftCard $card)
Send gift card code by mail
at line 140
Order|null
getLastUnfinishedOrderForUser()
Get last unfinished order for user