/** * @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); }
/** * @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); }