Skip to content
Snippets Groups Projects
Commit 0b2577d0 authored by Morton Jonuschat's avatar Morton Jonuschat Committed by Markus Klein
Browse files

[BUGFIX] Use Import class in ImportExportUtility::importT3DFile()

Update the method importT3DFile() to use the dedicated Import class
instead of the abstract parent class ImportExport.

Resolves: #72820
Related: #72710
Releases: master, 7.6
Change-Id: Iac88eae129433b154779178a4d59b9c0f639a62a
Reviewed-on: https://review.typo3.org/46080


Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
parent 00eb1023
Branches
Tags
No related merge requests found
......@@ -17,7 +17,7 @@ namespace TYPO3\CMS\Impexp\Utility;
use TYPO3\CMS\Core\Log\LogManager;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\SignalSlot\Dispatcher;
use TYPO3\CMS\Impexp\ImportExport;
use TYPO3\CMS\Impexp\Import;
/**
* Utility for import / export
......@@ -43,8 +43,8 @@ class ImportExportUtility
if (!is_int($pid)) {
throw new \InvalidArgumentException('Input parameter $int has to be of type integer', 1377625646);
}
/** @var $import ImportExport */
$import = GeneralUtility::makeInstance(ImportExport::class);
/** @var $import Import */
$import = GeneralUtility::makeInstance(Import::class);
$import->init(0, 'import');
$this->emitAfterImportExportInitialisationSignal($import);
......@@ -87,11 +87,11 @@ class ImportExportUtility
/**
* Emits a signal after initialization
*
* @param ImportExport $import
* @param Import $import
* @throws \TYPO3\CMS\Extbase\SignalSlot\Exception\InvalidSlotException
* @throws \TYPO3\CMS\Extbase\SignalSlot\Exception\InvalidSlotReturnException
*/
protected function emitAfterImportExportInitialisationSignal(ImportExport $import)
protected function emitAfterImportExportInitialisationSignal(Import $import)
{
$this->getSignalSlotDispatcher()->dispatch(__CLASS__, 'afterImportExportInitialisation', array($import));
}
......
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