-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #165 [1.x] UriSigner to become internal in 2.x
* [1.x] UriSigner to become internal in 2.x * start an upgrade guide for 2.0
- Loading branch information
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Upgrade from 1.x to 2.0 | ||
|
||
## UriSignerFactory | ||
|
||
- The `UriSignerFactory` became `@internal` & `@final`. This class should not be | ||
used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,20 @@ | |
/** | ||
* @author Victor Bocharsky <[email protected]> | ||
* @author Ryan Weaver <[email protected]> | ||
* | ||
* Will become final && internal and ultimately removed in v2.0. | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class UriSignerFactory | ||
{ | ||
private $secret; | ||
private $parameter; | ||
|
||
public function __construct(string $secret, string $parameter = '_hash') | ||
{ | ||
$this->secret = $secret; | ||
$this->parameter = $parameter; | ||
public function __construct( | ||
#[\SensitiveParameter] | ||
private string $secret, | ||
private string $parameter = '_hash' | ||
) { | ||
} | ||
|
||
/** | ||
|