private function createTargetFromFile(WebRequest $request, $file) { $nextRequest = $request->withContext($request->getTarget())->withTarget(new Path()); return new FileTarget($nextRequest, $this->store->read($file), $file); }