You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/VerifyEmailHelper.php
+53-4Lines changed: 53 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -38,14 +38,16 @@ final class VerifyEmailHelper implements VerifyEmailHelperInterface
38
38
* @var int The length of time in seconds that a signed URI is valid for after it is created
39
39
*/
40
40
private$lifetime;
41
+
private$useRelativePath;
41
42
42
-
publicfunction__construct(UrlGeneratorInterface$router, /* no typehint for BC with legacy PHP */$uriSigner, VerifyEmailQueryUtility$queryUtility, VerifyEmailTokenGenerator$generator, int$lifetime)
43
+
publicfunction__construct(UrlGeneratorInterface$router, /* no typehint for BC with legacy PHP */$uriSigner, VerifyEmailQueryUtility$queryUtility, VerifyEmailTokenGenerator$generator, int$lifetime, bool$useRelativePath)
43
44
{
44
45
$this->router = $router;
45
46
$this->uriSigner = $uriSigner;
46
47
$this->queryUtility = $queryUtility;
47
48
$this->tokenGenerator = $generator;
48
49
$this->lifetime = $lifetime;
50
+
$this->useRelativePath = $useRelativePath;
49
51
50
52
if (!$uriSignerinstanceof UriSigner) {
51
53
/** @psalm-suppress UndefinedFunction */
@@ -63,10 +65,8 @@ public function generateSignature(string $routeName, string $userId, string $use
0 commit comments