private function processAllXmlFiles()
 {
     $filesProcessed = 0;
     $dirLister = new PhpDirectoryLister();
     $xmlFilesList = $dirLister->listXml($this->localFeedDir);
     foreach ($xmlFilesList as $xmlFile) {
         try {
             $this->userLogger->info("processing file <{$xmlFile}> in <" . $this->localFeedDir . ">");
             $this->processXmlFile($xmlFile);
             $filesProcessed++;
         } catch (\Exception $e) {
             ExceptionsHandler::logError($e, $this->userLogger);
         }
     }
     $this->userLogger->info(get_class($this) . " has processed {$filesProcessed} / " . count($xmlFilesList) . " files");
 }
 private function processAllLocalXmlFiles()
 {
     $filesProcessed = 0;
     $directoryLister = new PhpDirectoryLister();
     $filesToProcessArray = $directoryLister->listXml($this->localFeedDir);
     $this->userLogger->info("Importing and archiving " . count($filesToProcessArray) . " local files");
     foreach ($filesToProcessArray as $fileToProcess) {
         try {
             $this->userLogger->info("processing local file <{$fileToProcess}> in <" . $this->localFeedDir . ">");
             $this->processLocalXmlFile($fileToProcess);
             $filesProcessed++;
         } catch (\Exception $e) {
             ExceptionsHandler::logError($e, $this->userLogger);
         }
     }
     $this->userLogger->info(get_class($this) . " has processed {$filesProcessed} / " . count($filesToProcessArray) . " local files");
 }