1 | <?php |
||
21 | class PlaceholderAliasGenerator implements VariationHandler |
||
22 | { |
||
23 | /** |
||
24 | * @var \eZ\Publish\SPI\Variation\VariationHandler |
||
25 | */ |
||
26 | private $aliasGenerator; |
||
27 | |||
28 | /** |
||
29 | * @var \Liip\ImagineBundle\Imagine\Cache\Resolver\ResolverInterface |
||
30 | */ |
||
31 | private $ioResolver; |
||
32 | |||
33 | /** |
||
34 | * @var \eZ\Publish\Core\IO\IOServiceInterface |
||
35 | */ |
||
36 | private $ioService; |
||
37 | |||
38 | /** |
||
39 | * @var \eZ\Bundle\EzPublishCoreBundle\Imagine\PlaceholderProvider|null |
||
40 | */ |
||
41 | private $placeholderProvider; |
||
42 | |||
43 | /** |
||
44 | * @var array |
||
45 | */ |
||
46 | private $placeholderOptions = []; |
||
47 | |||
48 | /** |
||
49 | * PlaceholderAliasGenerator constructor. |
||
50 | * |
||
51 | * @param \eZ\Publish\SPI\Variation\VariationHandler $aliasGenerator |
||
52 | * @param \Liip\ImagineBundle\Imagine\Cache\Resolver\ResolverInterface $ioResolver |
||
53 | * @param \eZ\Publish\Core\IO\IOServiceInterface $ioService |
||
54 | */ |
||
55 | public function __construct( |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function getVariation(Field $field, VersionInfo $versionInfo, $variationName, array $parameters = []) |
||
92 | |||
93 | public function setPlaceholderProvider(PlaceholderProvider $provider, array $options = []) |
||
98 | |||
99 | public function supportsValue(Value $value): bool |
||
103 | } |
||
104 |