コード例 #1
0
 public function __construct(File $file, Filesystem $filesystem, $streamWrapperPrefix = null)
 {
     parent::__construct($filesystem, $file->getPath());
     $this->streamWrapperPrefix = $streamWrapperPrefix;
 }
コード例 #2
0
ファイル: FileNode.php プロジェクト: graze/data-file
 /**
  * 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);
 }