-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathext_localconf.php
31 lines (26 loc) · 948 Bytes
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
defined('TYPO3') || die();
use In2code\Powermail\Domain\Service\Mail\SendMailService;
use Jpmschuler\PowermailLimits\SignalSlot\MailManipulation;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\SignalSlot\Dispatcher;
GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class)
->registerImplementation(\In2code\Powermail\Domain\Model\Form::class, \Jpmschuler\PowermailLimits\Domain\Model\FormWithSubmissionLimit::class);
$signalSlotDispatcher = GeneralUtility::makeInstance(
Dispatcher::class
);
$signalSlotDispatcher->connect(
SendMailService::class,
'sendTemplateEmailBeforeSend',
MailManipulation::class,
'sendTemplateEmailBeforeSend',
false
);
// add the PDF download link to the Admin E-Mail
$signalSlotDispatcher->connect(
SendMailService::class,
'createEmailBodyBeforeRender',
MailManipulation::class,
'createEmailBodyBeforeRender',
false
);