[TASK] FAL: Remove old publishing leftovers 95/36495/2
authorBenjamin Mack <benni@typo3.org>
Sat, 31 Jan 2015 11:23:19 +0000 (12:23 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 31 Jan 2015 11:32:28 +0000 (12:32 +0100)
The initial concept of having publishers
in the File Abstraction Layer was never
implemented.

The leftover code is removed.
No dependencies to the protected
method are found and can safely be
removed.

Resolves: #64683
Releases: master, 6.2
Change-Id: I4eca172bc9fd618ce80bd7c0158da73b01745a77
Reviewed-on: http://review.typo3.org/36495
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Resource/ResourceFactory.php

index f5413d1..399485f 100644 (file)
@@ -309,10 +309,7 @@ class ResourceFactory implements ResourceFactoryInterface, \TYPO3\CMS\Core\Singl
                }
                $driverType = $storageRecord['driver'];
                $driverObject = $this->getDriverObject($driverType, $storageConfiguration);
-               /** @var $storage ResourceStorage */
-               $storage = GeneralUtility::makeInstance($className, $driverObject, $storageRecord);
-               // TODO handle publisher
-               return $storage;
+               return GeneralUtility::makeInstance($className, $driverObject, $storageRecord);
        }
 
        /**
@@ -327,12 +324,6 @@ class ResourceFactory implements ResourceFactoryInterface, \TYPO3\CMS\Core\Singl
                return GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\Folder', $storage, $identifier, $name);
        }
 
-       protected function createPublisherFromConfiguration(array $configuration) {
-               $publishingTarget = $this->getStorageObject($configuration['publisherConfiguration']['publishingTarget']);
-               $publisher = GeneralUtility::makeInstance($configuration['publisher'], $publishingTarget, $configuration['publisherConfiguration']);
-               return $publisher;
-       }
-
        /**
         * Creates an instance of the file given UID. The $fileData can be supplied
         * to increase performance.
@@ -642,4 +633,4 @@ class ResourceFactory implements ResourceFactoryInterface, \TYPO3\CMS\Core\Singl
                return GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\Index\\Indexer', $storage);
        }
 
-}
+}
\ No newline at end of file