Download src/File/Infrastructure/FileService.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 411 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/File/Infrastructure/FileService.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/File/Infrastructure/FileService.php
-
curl -L -o FileService.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/File/Infrastructure/FileService.php
411 Bytes
| declare(strict_types=1); | |
| namespace File\Infrastructure; | |
| use File\Domain\Entities\AbstractFileEntity; | |
| use Shared\Infrastructure\FileSystem\CdnInterface; | |
| class FileService | |
| { | |
| public function __construct( | |
| private CdnInterface $cdn | |
| ) { | |
| } | |
| public function getFileContents(AbstractFileEntity $file): string | |
| { | |
| return $this->cdn->read($file->getObjectKey()->value); | |
| } | |
| } | |