class PaymentEmail implements PaymentEmailInterface

PaymentEmail class

Properties

private ConfigServiceInterface $configService Stores ConfigServiceInterface
private EmailServiceInterface $emailService Stores EmailServiceInterface
private Request $request Stores current Request
private Environment $environment Stores Environment
private TranslatorInterface $translator Stores TranslatorInterface

Methods

__construct(ConfigServiceInterface $configService, EmailServiceInterface $emailService, RequestStack $requestStack, Environment $environment, TranslatorInterface $translator)

No description

send(Payment $payment, string $amount)

Sends emails related to Payment

sendError(string $object, $data)

Sends email for error

sendUser(Payment $payment, string $subject)

Sends email related to Payment for the user

sendSite(Payment $payment, string $subject)

Sends email related to Payment for the site

Details

at line 57
__construct(ConfigServiceInterface $configService, EmailServiceInterface $emailService, RequestStack $requestStack, Environment $environment, TranslatorInterface $translator)

Parameters

ConfigServiceInterface $configService
EmailServiceInterface $emailService
RequestStack $requestStack
Environment $environment
TranslatorInterface $translator

at line 75
send(Payment $payment, string $amount)

Sends emails related to Payment

Parameters

Payment $payment
string $amount

at line 86
sendError(string $object, $data)

Sends email for error

Parameters

string $object
$data

at line 127
sendUser(Payment $payment, string $subject)

Sends email related to Payment for the user

Parameters

Payment $payment
string $subject

at line 147
sendSite(Payment $payment, string $subject)

Sends email related to Payment for the site

Parameters

Payment $payment
string $subject