From a7f87db2faa47f41729c90f5e00aeadfa7f83f3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 4 Jan 2018 00:00:02 +0100 Subject: [PATCH] Continued: - more rewrite towards SplFileInfo MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../classes/stacker/file/fifo/class_FiFoFileStack.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/framework/main/classes/stacker/file/fifo/class_FiFoFileStack.php b/framework/main/classes/stacker/file/fifo/class_FiFoFileStack.php index cf6ea598..9994e38c 100644 --- a/framework/main/classes/stacker/file/fifo/class_FiFoFileStack.php +++ b/framework/main/classes/stacker/file/fifo/class_FiFoFileStack.php @@ -8,6 +8,9 @@ use Org\Mxchange\CoreFramework\Filesystem\Stack\StackableFile; use Org\Mxchange\CoreFramework\Registry\Registerable; use Org\Mxchange\CoreFramework\Stacker\Filesystem\BaseFileStacker; +// Import SPL stuff +use \SplFileInfo; + /** * A FiFo file-based stack * @@ -44,16 +47,16 @@ class FiFoFileStack extends BaseFileStack implements StackableFile, Calculatable /** * Creates an instance of this class * - * @param $fileName Absolute Name of stack file + * @param $fileInfoInstance An instance of a SplFileInfo class * @param $type Type of this stack (e.g. url_source for URL sources) * @return $stackInstance An instance of a StackableFile class */ - public final static function createFiFoFileStack ($fileName, $type) { + public final static function createFiFoFileStack (SplFileInfo $fileInfoInstance, $type) { // Get new instance $stackInstance = new FiFoFileStack(); // Init this stack - $stackInstance->initFileStack($fileName, $type); + $stackInstance->initFileStack($fileInfoInstance, $type); // Return the prepared instance return $stackInstance; -- 2.39.2