1 | <?php |
||
24 | class CropFileManager |
||
25 | { |
||
26 | /** |
||
27 | * @var \Liip\ImagineBundle\Imagine\Data\DataManager |
||
28 | */ |
||
29 | protected $dataManager; |
||
30 | |||
31 | /** |
||
32 | * @var \Liip\ImagineBundle\Imagine\Filter\FilterManager |
||
33 | */ |
||
34 | protected $filterManager; |
||
35 | |||
36 | /** |
||
37 | * @var \Knp\Bundle\GaufretteBundle\FilesystemMap |
||
38 | */ |
||
39 | protected $filesystemMap; |
||
40 | |||
41 | /** |
||
42 | * @var \Jb\Bundle\FileUploaderBundle\Service\EndpointConfiguration |
||
43 | */ |
||
44 | protected $configuration; |
||
45 | |||
46 | /** |
||
47 | * Constructor |
||
48 | * |
||
49 | * @param DataManager $dataManager |
||
50 | * @param FilterManager $filterManager |
||
51 | * @param FilesystemMap $filesystemMap |
||
52 | * @param EndpointConfiguration $configuration |
||
53 | */ |
||
54 | public function __construct( |
||
65 | |||
66 | /** |
||
67 | * Transform the file |
||
68 | * |
||
69 | * @param array $data |
||
70 | * |
||
71 | * @return \Liip\ImagineBundle\Binary\BinaryInterface |
||
72 | */ |
||
73 | public function transformFile(array $data) |
||
87 | |||
88 | /** |
||
89 | * Save the transformed file |
||
90 | * |
||
91 | * @param string $endpoint |
||
92 | * @param BinaryInterface $cropedFile |
||
93 | * @param array $data |
||
94 | */ |
||
95 | public function saveTransformedFile($endpoint, BinaryInterface $cropedFile, array $data) |
||
107 | } |
||
108 |