File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,11 @@ public function updateResolutionScope($id)
47
47
{
48
48
$ id = rtrim ($ id , '# ' ); // safe to trim because # in hashCode must be urlencoded to %23
49
49
$ rootResolver = $ this ->rootResolver ? $ this ->rootResolver : $ this ;
50
- if (strpos ($ id , ':// ' ) !== false ) {
50
+ if (( strpos ($ id , ':// ' ) !== false ) || ' urn: ' === substr ( $ id , 0 , 4 ) ) {
51
51
$ prev = $ rootResolver ->setResolutionScope ($ id );
52
52
} else {
53
- $ prev = $ rootResolver ->setResolutionScope (Helper::resolveURI ($ rootResolver ->resolutionScope , $ id ));
53
+ $ id = Helper::resolveURI ($ rootResolver ->resolutionScope , $ id );
54
+ $ prev = $ rootResolver ->setResolutionScope ($ id );
54
55
}
55
56
56
57
return $ prev ;
@@ -198,6 +199,8 @@ public function resolveReference($referencePath)
198
199
$ refResolver ->refProvider = $ this ->refProvider ;
199
200
$ refResolver ->url = $ url ;
200
201
$ rootResolver ->setResolutionScope ($ url );
202
+ $ options = new Context (); // todo pass real ctx here, v0.13.0
203
+ $ rootResolver ->preProcessReferences ($ rootData , $ options );
201
204
}
202
205
}
203
206
You can’t perform that action at this time.
0 commit comments