ext_localconf.php 1.4 KB
Newer Older
1
2
3
4
5
<?php
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}

6
7
8
9
10
11
12
13
14
15
16
17

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
    'T3o.' . $_EXTKEY,
    'Pi1',
    [
        'MyProfile' => 'show, edit, update',
    ],
    [
        'MyProfile' => 'edit, update',
    ]
);

18
19
20
#######################################
###
#######################################
21
22
/**
 * Register signal slots
23
 *
24
25
26
 */
$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$dispatcher->connect(
27
    \In2code\Femanager\Controller\NewController::class,
Stefan Busemann's avatar
Stefan Busemann committed
28
    'createAdminConfirmationRequestAutoConfirmation',
Stefan Busemann's avatar
Stefan Busemann committed
29
30
    \T3o\T3omy\Hooks\FeManagerHooks::class,
    'newUserAutoApprovement'
31
);
32

33
$dispatcher->connect(
34
    \In2code\Femanager\Controller\NewController::class,
Stefan Busemann's avatar
Stefan Busemann committed
35
    'createAdminConfirmationRequestManualConfirmation',
Stefan Busemann's avatar
Stefan Busemann committed
36
37
    \T3o\T3omy\Hooks\FeManagerHooks::class,
    'newUserNotification'
38
);
39
40
41

$dispatcher->connect(
    \In2code\Femanager\Controller\UserBackendController::class,
42
    'confirmUserAction',
Stefan Busemann's avatar
Stefan Busemann committed
43
44
45
    \T3o\T3omy\Hooks\FeManagerHooks::class,
    'newUserAdminApprovement'
);
46

Stefan Busemann's avatar
Stefan Busemann committed
47
48
$dispatcher->connect(
    \In2code\Femanager\Controller\UserBackendController::class,
49
    'refuseUserAction',
Stefan Busemann's avatar
Stefan Busemann committed
50
    \T3o\T3omy\Hooks\FeManagerHooks::class,
51
    'newUserAdminDecline'
52
);
53

Stefan Busemann's avatar
Stefan Busemann committed
54
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['password_changed'][] = \T3o\T3omy\Hooks\FeManagerHooks::class . '->writePassword';
55