File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 2929 "php" : " ~8.1.0 || ~8.2.0" ,
3030 "ext-dom" : " *" ,
3131 "azjezz/psl" : " ^2.1" ,
32- "league/uri" : " ^6.5 " ,
33- "league/uri-components" : " ^2.4 " ,
32+ "league/uri" : " ^7.0 " ,
33+ "league/uri-components" : " ^7.0 " ,
3434 "php-soap/xml" : " ^1.4" ,
3535 "symfony/console" : " ^5.4|^6.0" ,
3636 "veewee/xml" : " ~2.2"
Original file line number Diff line number Diff line change 44
55namespace Soap \Wsdl \Uri ;
66
7- use League \Uri \Uri ;
8- use League \Uri \UriModifier ;
9- use League \Uri \UriResolver ;
7+ use League \Uri \BaseUri ;
8+ use League \Uri \Modifier ;
109
1110final class IncludePathBuilder
1211{
1312 public static function build (string $ relativePath , string $ fromFile ): string
1413 {
15- return UriModifier::removeEmptySegments (
16- UriModifier::removeDotSegments (
17- UriResolver::resolve (
18- Uri::createFromString ($ relativePath ),
19- Uri::createFromString ($ fromFile )
20- )
21- )
22- )->__toString ();
14+ $ baseUri = BaseUri::from ($ fromFile );
15+ $ uri = $ baseUri ->resolve ($ relativePath );
16+
17+ return Modifier::from ($ uri )
18+ ->removeDotSegments ()
19+ ->removeEmptySegments ()
20+ ->getUri ()
21+ ->toString ()
22+ ;
2323 }
2424}
You can’t perform that action at this time.
0 commit comments