feat: integrate with flysystem for xml data
This commit is contained in:
1 parent
036734eadf
commit
e4e03a848b
12 files changed
+617
-24
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user