From 749bdd1a4dab134828562d23f259922533d984f9 Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Sat, 17 Jun 2023 15:51:50 +0200 Subject: [PATCH] [CookieBundle] Deprecate entity controller action method --- UPGRADE-6.3.md | 5 +++++ src/Kunstmaan/CookieBundle/Controller/LegalController.php | 3 +++ 2 files changed, 8 insertions(+) diff --git a/UPGRADE-6.3.md b/UPGRADE-6.3.md index 1643ab1449..922d3ccc5d 100644 --- a/UPGRADE-6.3.md +++ b/UPGRADE-6.3.md @@ -19,6 +19,11 @@ AdminBundle - The `Kunstmaan\AdminBundle\Service\AuthenticationMailer\SwiftmailerService` authentication mailer service is deprecated, use `Kunstmaan\AdminBundle\Service\AuthenticationMailer\SymfonyMailerService` instead. - The default value of `kunstmaan_admin.authentication.mailer.service` will change to `Kunstmaan\AdminBundle\Service\AuthenticationMailer\SymfonyMailerService` in 7.0. +CookieBundle +------------ + +- The `Kunstmaan\CookieBundle\Controller\LegalController::legalPageAction` method is deprecated and will be removed. Is replaced by `Kunstmaan\CookieBundle\ViewDataProvider\LegalPageViewDataProvider`. + FormBundle ---------- diff --git a/src/Kunstmaan/CookieBundle/Controller/LegalController.php b/src/Kunstmaan/CookieBundle/Controller/LegalController.php index dcf9505f27..1dfb8b80ca 100644 --- a/src/Kunstmaan/CookieBundle/Controller/LegalController.php +++ b/src/Kunstmaan/CookieBundle/Controller/LegalController.php @@ -104,6 +104,9 @@ public function toggleAllCookiesAction(Request $request) return $response; } + /** + * @deprecated since 6.3. Replaced by \Kunstmaan\CookieBundle\ViewDataProvider\LegalPageViewDataProvider. + */ public function legalPageAction(Request $request) { if (!$this->cookieHelper->isGrantedForCookieBundle($request)) {