コード例 #1
0
 /**
  * @param string | array $data allowed format 100x100, array('width'=>100, 'height'=>100)
  * @param ImagineInterface $imageService
  * @param \Zf2FileUploader\Image\Box\ImageBoxFactoryInterface $imageBoxFactory
  * @param \Zf2FileUploader\Filter\Thumbnail\PathFilterFactoryInterface $pathFilterFactory
  */
 public function __construct($data, ImagineInterface $imageService, ImageBoxFactoryInterface $imageBoxFactory, PathFilterFactoryInterface $pathFilterFactory)
 {
     $this->imageService = $imageService;
     $this->imageBox = $imageBoxFactory->getImageBox($data);
     $this->pathFilter = $pathFilterFactory->getPathFilter($this->imageBox);
 }
コード例 #2
0
ファイル: Resize.php プロジェクト: spalax/zf2-file-uploader
 /**
  * @param string | array $data allowed format 100x100, array('width'=>100, 'height'=>100)
  * @param ImagineInterface $imageService
  * @param \Zf2FileUploader\Image\Box\ImageBoxFactoryInterface $imageBoxFactory
  */
 public function __construct($data, ImagineInterface $imageService, ImageBoxFactoryInterface $imageBoxFactory)
 {
     $this->imageService = $imageService;
     $this->imageBox = $imageBoxFactory->getImageBox($data);
 }