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 |
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 |
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 |