public function uploadFile(FileInterface $file, $data, $overwrite = true)
    {
        $this
            ->filesystem
            ->write(
                $this
                    ->fileIdentifierTransformer
                    ->transform($file),
                $data,
                $overwrite
            );

        return $this;
    }
public function uploadFile(FileInterface $file, $data, $overwrite = true)
    {
        $this
            ->filesystem
            ->write(
                $this
                    ->fileIdentifierTransformer
                    ->transform($file),
                $data,
                $overwrite
            );

        return $this;
    }
public function uploadFile ( FileInterface $ file , $ data , $ overwrite = true ) { $ this -> filesystem -> write ( $ this -> fileIdentifierTransformer -> transform ( $ file ) , $ data , $ overwrite ) ; return $ this ; }
Adds a File to an specific FileSystem, given an specific data.

Last parameter determines if file must be overwritten if already exists

@param FileInterface $file      File to upload
@param string        $data      File data
@param bool          $overwrite Overwrite file if exists

@return $this Self object
Adds a File to an specific FileSystem given an specific data .