[BUGFIX] Use Import class in ImportExportUtility::importT3DFile() 81/46081/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Tue, 19 Jan 2016 18:17:53 +0000 (19:17 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 19 Jan 2016 19:19:26 +0000 (20:19 +0100)
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/46081
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/impexp/Classes/Utility/ImportExportUtility.php

index 2810309..9312e16 100644 (file)
@@ -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));
     }