X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmiddleware%2Fio%2Fclass_FileIoHandler.php;h=81be505619114f92fca24ee1237d1a2f8f30ef25;hp=55f98f8e636f580bb5870b1c0f8c843c1c99f9c6;hb=0a638eea103f0f2b6c48374cb8d01e68893f5a65;hpb=65a9356fe91fab0489325b7f3a5662b8bbf0b110;ds=sidebyside diff --git a/inc/classes/middleware/io/class_FileIoHandler.php b/inc/classes/middleware/io/class_FileIoHandler.php index 55f98f8e..81be5056 100644 --- a/inc/classes/middleware/io/class_FileIoHandler.php +++ b/inc/classes/middleware/io/class_FileIoHandler.php @@ -125,9 +125,6 @@ class FileIoHandler extends BaseMiddleware implements IoHandler { * @return void */ public function saveFile ($fileName, $dataStream, FrameworkInterface $objectInstance = NULL) { - // Get output stream - $outInstance = $this->getOutputStream(); - // Default is this array $className = $this->__toString(); @@ -144,7 +141,7 @@ class FileIoHandler extends BaseMiddleware implements IoHandler { ); // Send the fileName and dataArray to the output handler - $outInstance->saveFile($fileName, $dataArray); + $this->getOutputStream()->saveFile($fileName, $dataArray); } /** Loads data from a file over the input handler @@ -153,11 +150,8 @@ class FileIoHandler extends BaseMiddleware implements IoHandler { * @return $array Array with the file contents */ public function loadFileContents ($fqfn) { - // Get output stream - $inInstance = $this->getInputStream(); - // Read from the input handler - return $inInstance->loadFileContents($fqfn); + return $this->getInputStream()->loadFileContents($fqfn); } }