예제 #1
0
 /**
  * Constructs a new instance of FileSystemStorage.
  *
  * @param \Vich\UploaderBundle\Mapping\PropertyMappingFactory $factory       The factory.
  * @param \Knp\Bundle\GaufretteBundle\FilesystemMap           $filesystemMap Gaufrete filesystem factory.
  * @param string                                              $protocol      Gaufrette stream wrapper protocol.
  */
 public function __construct(PropertyMappingFactory $factory, FilesystemMap $filesystemMap, $protocol = 'gaufrette')
 {
     parent::__construct($factory);
     $this->filesystemMap = $filesystemMap;
     $this->protocol = $protocol;
 }
예제 #2
0
 /**
  * Constructs a new instance of FlysystemStorage.
  *
  * @param \Vich\UploaderBundle\Mapping\PropertyMappingFactory $factory      The factory.
  * @param League\Flysystem\MountManager                       $mountManager Gaufrete filesystem factory.
  */
 public function __construct(PropertyMappingFactory $factory, MountManager $mountManager)
 {
     parent::__construct($factory);
     $this->mountManager = $mountManager;
 }
 /**
  * Constructs a new instance of FileSystemStorage.
  *
  * @param \Vich\UploaderBundle\Mapping\PropertyMappingFactory $factory       The factory.
  * @param FilesystemMap                                       $filesystemMap Gaufrete filesystem factory.
  */
 public function __construct(PropertyMappingFactory $factory, FilesystemMap $filesystemMap)
 {
     parent::__construct($factory);
     $this->filesystemMap = $filesystemMap;
 }