public function saveFile(FileInterface $file)
    {
        $this->em->persist($file);
        $this->em->flush();

        $this->storage->saveFile($file);
    }
public function saveFile(FileInterface $file)
    {
        $this->em->persist($file);
        $this->em->flush();

        $this->storage->saveFile($file);
    }
public function saveFile ( FileInterface $ file ) { $ this -> em -> persist ( $ file ) ; $ this -> em -> flush ( ) ; $ this -> storage -> saveFile ( $ file ) ; }
Save file to system.

@param FileInterface $file
Save file to system .