Commit 0c5a0aa1 authored by Julian Kleinhans's avatar Julian Kleinhans Committed by Anja Leichsenring
Browse files

[TASK] New SignalSlot after preInit in EditDocumentController

Adds a new SignalSlot possibility after the preInit method call.

Resolves: #56195
Releases: 6.2
Change-Id: Ia68734999a0e5fbe6c945d9e28d8571cd6192e75
Reviewed-on: https://review.typo3.org/27777
Reviewed-by: Tomas Norre Mikkelsen
Tested-by: Tomas Norre Mikkelsen
Reviewed-by: Erik Frister
Tested-by: Erik Frister
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
parent 9551ac77
......@@ -358,6 +358,11 @@ class EditDocumentController {
*/
public $dontStoreDocumentRef;
/**
* @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
*/
protected $signalSlotDispatcher;
/**
* Constructor
*/
......@@ -366,6 +371,18 @@ class EditDocumentController {
$GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_alt_doc.xml');
}
/**
* Get the SignalSlot dispatcher
*
* @return \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
*/
protected function getSignalSlotDispatcher() {
if (!isset($this->signalSlotDispatcher)) {
$this->signalSlotDispatcher = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
}
return $this->signalSlotDispatcher;
}
/**
* First initialization.
*
......@@ -422,6 +439,8 @@ class EditDocumentController {
if ($this->workspace !== NULL) {
$this->getBackendUser()->setTemporaryWorkspace($this->workspace);
}
$this->getSignalSlotDispatcher()->dispatch(__CLASS__, __FUNCTION__ . 'After', array($this));
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment