Skip to content

Commit

Permalink
Add some missing deprecations about signed URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jan 14, 2025
1 parent 8dca478 commit 236982b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Config/Option/EA.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ final class EA
public const SORT = 'sort';
/** @deprecated this parameter is no longer used because menu items are now highlighted automatically */
public const SUBMENU_INDEX = 'submenuIndex';
/** @deprecated this parameter is no longer used because URLs no longer include a signed hash */
public const URL_SIGNATURE = 'signature';
}
6 changes: 6 additions & 0 deletions src/Router/AdminUrlGeneratorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@ public function removeReferrer(): self;
*/
public function setReferrer(string $referrer): self;

/**
* @deprecated since 4.1.0, will be removed in 5.0.0. Signed URLs don't provide additional security in backends and have been removed without a replacement.
*/
public function addSignature(bool $addSignature = true): self;

/**
* @deprecated since 4.1.0, will be removed in 5.0.0. Signed URLs don't provide additional security in backends and have been removed without a replacement.
*/
public function getSignature(): string;

public function generateUrl(): string;
Expand Down

0 comments on commit 236982b

Please sign in to comment.