autodetect class and protocol

This commit is contained in:
Robin Appelman 2019-03-11 15:33:30 +01:00
commit 3171a535de
12 changed files with 28 additions and 15 deletions

View file

@ -61,7 +61,7 @@ class UrlCallback extends Wrapper implements Url {
'unlink' => $unlink,
'stat' => $stat
);
return new Path('\Icewind\Streams\UrlCallBack', $options);
return new Path(static::class, $options);
}
protected function loadContext($url) {