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

getStorage() public method

public getStorage ( UploadedFile $file ) : Gaufrette\Filesystem
$file PartKeepr\UploadedFileBundle\Entity\UploadedFile
return Gaufrette\Filesystem
    public function getStorage(UploadedFile $file)
    {
        $type = strtolower($file->getType());
        return $this->container->get('filesystem_' . $type);
    }