-
Notifications
You must be signed in to change notification settings - Fork 8
/
ext_localconf.php
executable file
·32 lines (29 loc) · 981 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
32
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
call_user_func(function () {
/**
* Register some Slots
*/
/** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class
);
// Manipulate a value before sending example
$signalSlotDispatcher->connect(
\In2code\Powermail\Controller\FormController::class,
'createActionBeforeRenderView',
\In2code\Powermailextended\Controller\FormController::class,
'manipulateMailObjectOnCreate',
false
);
// Change receiver mail example
$signalSlotDispatcher->connect(
\In2code\Powermail\Domain\Service\Mail\SendMailService::class,
'sendTemplateEmailBeforeSend',
\In2code\Powermailextended\Domain\Service\SendMailService::class,
'manipulateMail',
false
);
});