feat: integrate with flysystem for xml data

This commit is contained in:
Björn Fromme committed 2025-03-26 16:07:37 +01:00
1 parent 036734eadf
commit e4e03a848b
12 files changed
+617 -24

No files matched your search

+2 -3
View File
@@ -56,8 +56,7 @@ class HotelLoader extends AbstractLoader
private function loadXml(?string $filename = 'hotel.xml'): Crawler
{
$filepath = $this->xmlPath.'/'.$filename;
$xml = file_get_contents($filepath);
$xml = $this->xmlExport->read($filename);
return new Crawler($xml);
}
@@ -82,4 +81,4 @@ class HotelLoader extends AbstractLoader
$hotel = $this->loadById($hotelId);
$travel->hotel = $hotel;
}
}
}