1 | <?php |
||
22 | class ImagineAwareAliasGenerator implements VariationHandler |
||
23 | { |
||
24 | /** |
||
25 | * @var \eZ\Publish\SPI\Variation\VariationHandler |
||
26 | */ |
||
27 | private $aliasGenerator; |
||
28 | |||
29 | /** |
||
30 | * @var \eZ\Bundle\EzPublishCoreBundle\Imagine\VariationPathGenerator |
||
31 | */ |
||
32 | private $variationPathGenerator; |
||
33 | |||
34 | /** |
||
35 | * @var \eZ\Publish\Core\IO\IOServiceInterface |
||
36 | */ |
||
37 | private $ioService; |
||
38 | |||
39 | /** |
||
40 | * @var \eZ\Publish\Core\MVC\ConfigResolverInterface |
||
41 | */ |
||
42 | private $configResolver; |
||
43 | |||
44 | /** |
||
45 | * @var \Imagine\Image\ImagineInterface |
||
46 | */ |
||
47 | private $imagine; |
||
48 | |||
49 | public function __construct( |
||
60 | |||
61 | /** |
||
62 | * Returns a Variation object, ensuring proper image dimensions. |
||
63 | * |
||
64 | * {@inheritdoc} |
||
65 | * |
||
66 | * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException |
||
67 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
||
68 | */ |
||
69 | public function getVariation( |
||
106 | |||
107 | /** |
||
108 | * Get image variation filesystem path. |
||
109 | * |
||
110 | * @param string $originalPath |
||
111 | * @param string $variationName |
||
112 | * |
||
113 | * @return \eZ\Publish\Core\IO\Values\BinaryFile |
||
114 | * |
||
115 | * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException |
||
116 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
||
117 | */ |
||
118 | private function getVariationBinaryFile($originalPath, $variationName) |
||
131 | } |
||
132 |