feat: api endpoints and xml sync for contingents data

This commit is contained in:
Björn Fromme
2026-04-22 11:23:52 +02:00
parent a1f68ec11d
commit 9b84893d88
50 changed files with 2567 additions and 221 deletions
@@ -7,6 +7,7 @@ use App\BusProNet\XmlLoader\HotelLoader;
use League\Flysystem\FilesystemOperator;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Cache\Adapter\ArrayAdapter;
use Symfony\Component\Cache\Adapter\TagAwareAdapter;
class HotelDataLoaderTest extends TestCase
{
@@ -32,7 +33,7 @@ class HotelDataLoaderTest extends TestCase
->with('hotel.xml')
->willReturn($xmlContent);
$cache = new ArrayAdapter();
$cache = new TagAwareAdapter(new ArrayAdapter());
$loader = new HotelLoader($cache, $filesystem);
$hotels = $loader->loadAll();