Lines Matching refs:mime
46 private Mime $mime;
56 * @throws ExceptionBadArgument - if the mime is not supported or the path of the page is not a wiki path
58 public static function createForPage(MarkupPath $page, Mime $mime = null): FetcherVignette
62 if ($mime === null) {
63 $mime = Mime::create(Mime::WEBP);
65 $fetcherVignette->setMime($mime);
77 $extension = $this->mime->getExtension();
222 // no logo installed, mime not found, extension not supported
249 LogUtility::internalError("The possible mime error should have been caught in the setter");
278 * @throws ExceptionNotFound - unknown mime or unknown extension
295 throw new ExceptionNotFound("Bad mime should have been caught by the setter");
304 $vignetteNameValue = $this->pagePath->getWikiId() . "." . $this->mime->getExtension();
319 return $this->mime;
345 throw new ExceptionBadArgument("The vignette mime is unknown. Error: {$e->getMessage()}");
383 public function setMime(Mime $mime): FetcherVignette
385 $this->mime = $mime;
387 $extension = $mime->getExtension();
406 throw new ExceptionBadArgument("The mime ($mime) is not supported");