Skip to content

Commit

Permalink
Merge pull request #3297 from acrobat/deprecate-cookie-bundle-method
Browse files Browse the repository at this point in the history
[CookieBundle] Deprecate entity controller action method
  • Loading branch information
acrobat authored Jun 17, 2023
2 parents 1cfe41f + 749bdd1 commit 6fd3c26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UPGRADE-6.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------

Expand Down
3 changes: 3 additions & 0 deletions src/Kunstmaan/CookieBundle/Controller/LegalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6fd3c26

Please sign in to comment.