urlManagerProducer->getHostInfo(); } return $absoluteUrlPrepend . \Yii::$app->urlManagerProducer->baseUrl.'/'.self::DIR_UPLOADS.'/'; } public static function getThumbnailFilename(string $filename, string $thumbnail = self::THUMBNAIL_MEDIUM) { $filenameArray = explode('.', $filename); return $filenameArray[0].'-'.$thumbnail.'.'.$filenameArray[1]; } public static function isThumbnailExist(string $thumbnailFilename): bool { return file_exists(\Yii::getAlias('@producer').'/web/'.self::DIR_UPLOADS.'/'.$thumbnailFilename); } }