add PathWrapper to get a virtual path for an existing file

This commit is contained in:
Robin Appelman 2016-10-26 22:08:04 +02:00
commit 5981b1b39c
4 changed files with 55 additions and 5 deletions

View file

@ -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']);