PHP Class WellCommerce\Bundle\MediaBundle\Uploader\MediaUploader

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

Méthodes publiques

Méthode 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 méthode

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 méthode

public getUploadDir ( string $dir ) : string
$dir string
Résultat string

upload() public méthode

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