| 12345678910111213141516171819202122 |
- <?php
- declare(strict_types=1);
- namespace App\Service\Storage;
- use App\Service\Utils\Path;
- use Knp\Bundle\GaufretteBundle\FilesystemMap;
- /**
- * Base class for file storage
- */
- abstract class FileStorage
- {
- public function __construct(
- protected FilesystemMap $filesystem
- )
- {}
- protected function getStorageBaseDir(): string {
- return Path::join(Path::getProjectDir(), 'var', 'files');
- }
- }
|