mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 16:44:07 +02:00
add PathWrapper to get a virtual path for an existing file
This commit is contained in:
parent
d3620e8dc4
commit
5981b1b39c
4 changed files with 55 additions and 5 deletions
|
|
@ -53,7 +53,7 @@ abstract class Wrapper implements File, Directory {
|
|||
if (isset($context[$name])) {
|
||||
$context = $context[$name];
|
||||
} else {
|
||||
throw new \BadMethodCallException('Invalid context, "callable" options not set');
|
||||
throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set');
|
||||
}
|
||||
if (isset($context['source']) and is_resource($context['source'])) {
|
||||
$this->setSourceStream($context['source']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue