DEPRECATION WARNING

This documentation is not using the current rendering mechanism and will be deleted by December 31st, 2020. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Hooks / SignalSlots

This Extension offers the Signal Slot “beforeRedirect”, which is called before a successfully logged-in user will be redirected.

Usage from within your extension’s ext_localconf.php

\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
  'Antwerpes\\ApDocchecklogin\\Controller\\DocCheckAuthenticationController',
  \Antwerpes\ApDocchecklogin\Controller\DocCheckAuthenticationController::SIGNAL_BEFORE_REDIRECT,
  'Vendor\\The\\Implementing\\Class',
  'methodToBeCalled'
);

Hook (old style)

If you prefer the old-fashioned hook style, use the following within your ext_tables.php

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ap_docchecklogin']
  [\Antwerpes\ApDocchecklogin\Controller\DocCheckAuthenticationController::SIGNAL_BEFORE_REDIRECT][]
    = 'EXT:' . $_EXTKEY . '/Classes/Hooks/HookImplementingClass.php:\\Vendor\\YourExt\\Hooks\\HookImplementingClass->hookImplementingMethod';