src/Graviton/FileBundle/Manager/FileManager.php
public function saveFile($id, $filepath)
    {
        // will save using a stream
        $fp = fopen($filepath, 'r+');

        $this->fileSystem->putStream($id, $fp);

        // close file
        fclose($fp);
    }
public function saveFile($id, $filepath)
    {
        // will save using a stream
        $fp = fopen($filepath, 'r+');

        $this->fileSystem->putStream($id, $fp);

        // close file
        fclose($fp);
    }
public function saveFile ( $ id , $ filepath ) { // will save using a stream $ fp = fopen ( $ filepath , 'r+' ) ; $ this -> fileSystem -> putStream ( $ id , $ fp ) ; // close file fclose ( $ fp ) ; }
Save or update a file

@param string $id       ID of file
@param String $filepath path to the file to save

@return void
Save or update a file