Esempio n. 1
0
 /**
  * @param string                                                $name
  * @param \Gaufrette\Filesystem                                 $filesystem
  * @param \Sonata\MediaBundle\CDN\CDNInterface                  $cdn
  * @param \Sonata\MediaBundle\Generator\GeneratorInterface      $pathGenerator
  * @param \Sonata\MediaBundle\Thumbnail\ThumbnailInterface      $thumbnail
  * @param array                                                 $allowedExtensions
  * @param array                                                 $allowedMimeTypes
  * @param \Imagine\Image\ImagineInterface                       $adapter
  * @param \Sonata\MediaBundle\Metadata\MetadataBuilderInterface $metadata
  */
 public function __construct($name, Filesystem $filesystem, CDNInterface $cdn, GeneratorInterface $pathGenerator, ThumbnailInterface $thumbnail, array $allowedExtensions = array(), array $allowedMimeTypes = array(), ImagineInterface $adapter, MetadataBuilderInterface $metadata = null)
 {
     parent::__construct($name, $filesystem, $cdn, $pathGenerator, $thumbnail, $allowedExtensions, $allowedMimeTypes, $metadata);
     $this->imagineAdapter = $adapter;
 }
Esempio n. 2
0
 /**
  * @param string $name
  * @param Filesystem $filesystem
  * @param CDNInterface $cdn
  * @param GeneratorInterface $pathGenerator
  * @param ThumbnailInterface $thumbnail
  * @param array $allowedExtensions
  * @param array $allowedMimeTypes
  * @param ResizerInterface $resizer
  * @param MetadataBuilderInterface|null $metadata
  */
 public function __construct($name, Filesystem $filesystem, CDNInterface $cdn, GeneratorInterface $pathGenerator, ThumbnailInterface $thumbnail, array $allowedExtensions = array(), array $allowedMimeTypes = array(), ResizerInterface $resizer, MetadataBuilderInterface $metadata = null, Producer $producer)
 {
     parent::__construct($name, $filesystem, $cdn, $pathGenerator, $thumbnail, $allowedExtensions, $allowedMimeTypes, $metadata);
     $this->resizer = $resizer;
     $this->producer = $producer;
 }
 /**
  * @param string                                                $name
  * @param \Gaufrette\Filesystem                                 $filesystem
  * @param \Sonata\MediaBundle\CDN\CDNInterface                  $cdn
  * @param \Sonata\MediaBundle\Generator\GeneratorInterface      $pathGenerator
  * @param \Sonata\MediaBundle\Thumbnail\ThumbnailInterface      $thumbnail
  * @param array                                                 $allowedExtensions
  * @param array                                                 $allowedMimeTypes
  * @param \Sonata\MediaBundle\Metadata\MetadataBuilderInterface $metadata
  */
 public function __construct($name, Filesystem $filesystem, CDNInterface $cdn, GeneratorInterface $pathGenerator, ThumbnailInterface $thumbnail, MetadataBuilderInterface $metadata = null)
 {
     parent::__construct($name, $filesystem, $cdn, $pathGenerator, $thumbnail, array('mp3'), array('audio/mp3', 'audio/mpeg', 'application/octet-stream'), $metadata);
 }
 public function __construct($name, Filesystem $filesystem, CDNInterface $cdn, GeneratorInterface $pathGenerator, ThumbnailInterface $thumbnail, array $allowedExtensions = array(), array $allowedMimeTypes = array(), MetadataBuilderInterface $metadata = null, EntityManager $entityManager)
 {
     $this->entityManager = $entityManager;
     parent::__construct($name, $filesystem, $cdn, $pathGenerator, $thumbnail, $allowedExtensions, $allowedMimeTypes, $metadata);
 }