PHP Class WellCommerce\Bundle\MediaBundle\Uploader\MediaUploader

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\MediaBundle\Uploader\MediaUploaderInterface
Exibir arquivo Open project: wellcommerce/wellcommerce

Public Methods

Method Description
__construct ( WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface $manager, string $uploadRootDir, WellCommerce\Bundle\CoreBundle\Helper\Validator\ValidatorHelperInterface $validatorHelper ) MediaUploader constructor.
getUploadDir ( string $dir ) : string
upload ( Symfony\Component\HttpFoundation\File\UploadedFile $file, $dir ) : WellCommerce\Bundle\MediaBundle\Entity\MediaInterface

Method Details

__construct() public method

MediaUploader constructor.
public __construct ( WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface $manager, string $uploadRootDir, WellCommerce\Bundle\CoreBundle\Helper\Validator\ValidatorHelperInterface $validatorHelper )
$manager WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface
$uploadRootDir string
$validatorHelper WellCommerce\Bundle\CoreBundle\Helper\Validator\ValidatorHelperInterface

getUploadDir() public method

public getUploadDir ( string $dir ) : string
$dir string
return string

upload() public method

public upload ( Symfony\Component\HttpFoundation\File\UploadedFile $file, $dir ) : WellCommerce\Bundle\MediaBundle\Entity\MediaInterface
$file Symfony\Component\HttpFoundation\File\UploadedFile
return WellCommerce\Bundle\MediaBundle\Entity\MediaInterface