PartKeepr\UploadedFileBundle\Services\UploadedFileService::getStorageDirectory PHP Method

getStorageDirectory() public method

Returns the storage directory for a given UploadedFile.
public getStorageDirectory ( UploadedFile $file ) : string
$file PartKeepr\UploadedFileBundle\Entity\UploadedFile The file to get the storage directory for
return string The storage directory for the type of the given UploadedFile
    public function getStorageDirectory(UploadedFile $file)
    {
        return $this->container->getParameter('partkeepr.directories.' . $file->getType());
    }