@@ -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 /**
0 commit comments