1 | <?php |
||
14 | class ImageHandler extends FileHandler |
||
15 | { |
||
16 | protected $aviaryApiKey; |
||
17 | |||
18 | /** |
||
19 | * @param int $priority |
||
20 | * @param string $aviaryApiKey The aviary key |
||
21 | */ |
||
22 | 1 | public function __construct($priority, MimeTypeGuesserFactoryInterface $mimeTypeGuesserFactory, ExtensionGuesserFactoryInterface $extensionGuesserFactoryInterface, $aviaryApiKey) |
|
27 | |||
28 | /** |
||
29 | * @return string |
||
30 | */ |
||
31 | public function getAviaryApiKey() |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getName() |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getType() |
||
51 | |||
52 | /** |
||
53 | * @param mixed $object |
||
54 | * |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function canHandle($object) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function getShowTemplate(Media $media) |
||
73 | |||
74 | /** |
||
75 | * @param Media $media The media entity |
||
76 | * @param string $basepath The base path |
||
77 | * |
||
78 | * @return string |
||
79 | */ |
||
80 | public function getImageUrl(Media $media, $basepath) |
||
84 | |||
85 | 1 | public function prepareMedia(Media $media) |
|
102 | } |
||
103 |