[TASK] FAL: Remove old publishing leftovers 94/36494/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:28:40 +0000 (12:28 +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/36494
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Resource/ResourceFactory.php

index 92b392f..18d175b 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::class, $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.