Ejemplo n.º 1
0
 public function __construct(File $file, Filesystem $filesystem, $streamWrapperPrefix = null)
 {
     parent::__construct($filesystem, $file->getPath());
     $this->streamWrapperPrefix = $streamWrapperPrefix;
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }