*/ public function absPath(string $partialPath): string { return PathUtils::join(PathUtils::getProjectDir(), 'public', $partialPath); } /** * Retourne l'URL d'accès à une image contenu dans une File. * * Usage : * * * * @param string $size @see src/Enum/Core/FileSizeEnum.php * * @throws FileNotFoundException */ public function fileImagePath(File $file, string $size): string { return ltrim($this->fileManager->getImageUrl($file, $size, true), '/'); } }