public function __construct(File $file, Filesystem $filesystem, $streamWrapperPrefix = null) { parent::__construct($filesystem, $file->getPath()); $this->streamWrapperPrefix = $streamWrapperPrefix; }
/** * FileNode constructor. * * @param FilesystemInterface $filesystem * @param null|string $path */ public function __construct(FilesystemInterface $filesystem, $path) { $this->wrapper = new FilesystemWrapper($filesystem); parent::__construct($this->wrapper, $path); }