fix: invalidate booking data caches after updating personal data

This commit is contained in:
Björn Fromme
2026-03-16 12:01:09 +01:00
parent 8887b06583
commit e5781fbabc
7 changed files with 62 additions and 46 deletions
@@ -5,7 +5,6 @@ namespace App\Controller\Booking;
use App\BusProNet\ApiClient;
use App\BusProNet\Exception\ApiClientException;
use App\BusProNet\Model\Notification;
use App\Controller\Booking\Traits\BookingDataTrait;
use App\Entity\User;
use App\Security\Crypt;
use Psr\Log\LoggerInterface;
@@ -15,17 +14,13 @@ use Symfony\Component\HttpFoundation\ResponseHeaderBag;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
use Symfony\Contracts\Cache\CacheInterface;
use function Symfony\Component\String\u;
class DownloadController extends AbstractController
{
use BookingDataTrait;
public function __construct(
private readonly ApiClient $apiClient,
private readonly CacheInterface $cache,
private readonly Crypt $crypt,
private readonly LoggerInterface $logger,
) {