public function generateDownloadUrl(FileInterface $file)
    {
        return $this->container->get('router')->generate('thrace_media_file_download', array(
            'filepath' => $file->getFilePath(), 'filename' => $file->getOriginalName()
        ), true);
    }
public function generateDownloadUrl(FileInterface $file)
    {
        return $this->container->get('router')->generate('thrace_media_file_download', array(
            'filepath' => $file->getFilePath(), 'filename' => $file->getOriginalName()
        ), true);
    }
public function generateDownloadUrl ( FileInterface $ file ) { return $ this -> container -> get ( 'router' ) -> generate ( 'thrace_media_file_download' , array ( 'filepath' => $ file -> getFilePath ( ) , 'filename' => $ file -> getOriginalName ( ) ) , true ) ; }
Return download url

@param FileInterface $file
@return string
Return download url