Skip to content

Commit 35e8e0c

Browse files
committed
Update dependencies
1 parent f1b66b8 commit 35e8e0c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Security/AbstractTokenFactory.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function createToken($gatewayName, $model, $targetPath, array $targetPara
5151
}
5252

5353
if (0 === strpos($targetPath, 'http')) {
54-
$targetUri = HttpUri::createFromString($targetPath);
54+
$targetUri = HttpUri::new($targetPath);
5555
$targetUri = $this->addQueryToUri($targetUri, $targetParameters);
5656

5757
$token->setTargetUrl((string) $targetUri);
@@ -60,7 +60,7 @@ public function createToken($gatewayName, $model, $targetPath, array $targetPara
6060
}
6161

6262
if ($afterPath && 0 === strpos($afterPath, 'http')) {
63-
$afterUri = HttpUri::createFromString($afterPath);
63+
$afterUri = HttpUri::new($afterPath);
6464
$afterUri = $this->addQueryToUri($afterUri, $afterParameters);
6565

6666
$token->setAfterUrl((string) $afterUri);
@@ -81,11 +81,11 @@ public function createToken($gatewayName, $model, $targetPath, array $targetPara
8181
*/
8282
protected function addQueryToUri(HttpUri $uri, array $query)
8383
{
84-
$uriQuery = Query::createFromUri($uri)->withoutEmptyPairs();
84+
$uriQuery = Query::fromUri($uri)->withoutEmptyPairs();
8585

86-
$query = array_replace($uriQuery->params(), $query);
86+
$query = array_replace($uriQuery->parameters(), $query);
8787

88-
return $uri->withQuery((string) Query::createFromParams($query));
88+
return $uri->withQuery((string) Query::fromVariable($query));
8989
}
9090

9191
/**

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"php-http/message": "^1.0",
3838
"php-http/client-implementation": "^1.0",
3939
"psr/log": "^1 || ^2 || ^3",
40-
"league/uri": "^6.4",
41-
"league/uri-components": "^2.2",
40+
"league/uri": "^7.0",
41+
"league/uri-components": "^7.0",
4242
"twig/twig": "^1.34|^2.4|^3.0"
4343
},
4444
"require-dev": {

0 commit comments

Comments
 (0)