1 | <?php |
||
14 | class ImageHandler extends FileHandler |
||
15 | { |
||
16 | protected $aviaryApiKey; |
||
17 | |||
18 | /** |
||
19 | * @param int $priority |
||
20 | * @param MimeTypeGuesserFactoryInterface $mimeTypeGuesserFactory |
||
21 | * @param ExtensionGuesserFactoryInterface $extensionGuesserFactoryInterface |
||
22 | * @param string $aviaryApiKey The aviary key |
||
23 | */ |
||
24 | 1 | public function __construct($priority, MimeTypeGuesserFactoryInterface $mimeTypeGuesserFactory, ExtensionGuesserFactoryInterface $extensionGuesserFactoryInterface, $aviaryApiKey) |
|
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | */ |
||
33 | public function getAviaryApiKey() |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getName() |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getType() |
||
53 | |||
54 | /** |
||
55 | * @param mixed $object |
||
56 | * |
||
57 | * @return bool |
||
58 | */ |
||
59 | public function canHandle($object) |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function getShowTemplate(Media $media) |
||
75 | |||
76 | /** |
||
77 | * @param Media $media The media entity |
||
78 | * @param string $basepath The base path |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getImageUrl(Media $media, $basepath) |
||
86 | |||
87 | /** |
||
88 | * @param Media $media |
||
89 | */ |
||
90 | 1 | public function prepareMedia(Media $media) |
|
107 | } |
||
108 |