class UploadEmailLogoController extends UploadImageController
Uploads the logo shown at the top of HTML emails. It's stored as PNG (or GIF when animated) rather than WebP, which many mail clients can't display.
Properties
| protected Filesystem | $uploadDir | from UploadImageController |
|
|
| protected string | $fileExtension | from UploadImageController |
|
|
| protected string | $filePathSettingKey |
|
||
| protected string | $filenamePrefix |
|
||
| protected string|null | $validator |
|
Methods
__construct( JsonApi $api, SettingsRepositoryInterface $settings, ImageManager $imageManager, TranslatorInterface $translator, Factory $filesystemFactory, Container $container)
No description
ResponseInterface
handle( ServerRequestInterface $request)
No description
void
afterStore( ServerRequestInterface $request, UploadedFileInterface $file)
Runs after the image has been stored and its setting saved, before the forum document is returned. Override it to store derived images.
string
filePathSettingKey( ServerRequestInterface $request, UploadedFileInterface $file)
No description
Details
in UploadImageController
at
line 37
__construct( JsonApi $api, SettingsRepositoryInterface $settings, ImageManager $imageManager, TranslatorInterface $translator, Factory $filesystemFactory, Container $container)
in UploadImageController
at
line 50
ResponseInterface
handle( ServerRequestInterface $request)
at
line 31
protected EncodedImageInterface| StreamInterface
makeImage( UploadedFileInterface $file)
at
line 40
protected void
afterStore( ServerRequestInterface $request, UploadedFileInterface $file)
Runs after the image has been stored and its setting saved, before the forum document is returned. Override it to store derived images.