/webtrees/app/Services/ |
H A D | HousekeepingService.php | 233 * @param FilesystemOperator $filesystem 237 public function deleteOldWebtreesFiles(FilesystemOperator $filesystem): array argument 242 if (!$this->deleteFileOrFolder($filesystem, $path)) { 253 * @param FilesystemOperator $filesystem 259 public function deleteOldFiles(FilesystemOperator $filesystem, string $path, int $max_age): void argument 263 $list = $filesystem->listContents($path, FilesystemReader::LIST_DEEP); 270 $this->deleteFileOrFolder($filesystem, $metadata['path']); 303 * @param FilesystemOperator $filesystem 308 private function deleteFileOrFolder(FilesystemOperator $filesystem, string $path): bool argument 311 $filesystem->delete($path); [all …]
|
H A D | UpgradeService.php | 141 * @param FilesystemOperator $filesystem 148 public function downloadFile(string $url, FilesystemOperator $filesystem, string $path): int argument 179 $filesystem->writeStream($path, $tmp); 211 * @param FilesystemOperator $filesystem 217 …public function cleanFiles(FilesystemOperator $filesystem, Collection $folders_to_clean, Collectio… argument 221 … foreach ($filesystem->listContents($folder_to_clean, FilesystemReader::LIST_DEEP) as $path) { 224 $filesystem->delete($path['path']);
|
H A D | AdminService.php | 242 * @param FilesystemOperator $filesystem 246 public function gedcomFiles(FilesystemOperator $filesystem): Collection argument 249 $files = $filesystem->listContents('') 250 ->filter(static function (StorageAttributes $attributes) use ($filesystem) { 255 $stream = $filesystem->readStream($attributes->path());
|
H A D | MediaFileService.php | 276 * @param FilesystemOperator $filesystem $filesystem to search 282 …public function allFilesOnDisk(FilesystemOperator $filesystem, string $folder, bool $subfolders): … argument 285 $files = $filesystem
|
/webtrees/app/Factories/ |
H A D | ImageFactory.php | 82 …public function fileResponse(FilesystemOperator $filesystem, string $path, bool $download): Respon… argument 86 $mime_type = $filesystem->mimeType(path: $path); 93 …return $this->imageResponse(data: $filesystem->read(location: $path), mime_type: $mime_type, filen… 104 FilesystemOperator $filesystem, argument 111 $mime_type = $filesystem->mimeType(path: $path); 112 $image = $this->imageManager()->read(input: $filesystem->readStream($path)); 138 $filesystem = $media_file->media()->tree()->mediaFilesystem(); 142 return $this->fileResponse(filesystem: $filesystem, path: $path, download: $download); 147 $image = $this->imageManager()->read(input: $filesystem->readStream($path)); 178 $filesystem = $media_file->media()->tree()->mediaFilesystem(); [all …]
|
/webtrees/app/Http/RequestHandlers/ |
H A D | AdminMediaFileThumbnail.php | 55 $filesystem = Registry::filesystem()->data(); 58 $media_folders = $this->media_file_service->allMediaFolders($filesystem)->all(); 62 … return Registry::imageFactory()->thumbnailResponse($filesystem, $path, 120, 120, 'contain');
|
H A D | AdminMediaFileDownload.php | 55 $filesystem = Registry::filesystem()->data(); 58 $media_folders = $this->media_file_service->allMediaFolders($filesystem)->all(); 62 return Registry::imageFactory()->fileResponse($filesystem, $path, false);
|
H A D | UpgradeWizardStep.php | 176 $root_filesystem = Registry::filesystem()->root(); 210 $data_filesystem = Registry::filesystem()->data(); 226 $root_filesystem = Registry::filesystem()->root(); 276 … $source_filesystem = Registry::filesystem()->root(self::UPGRADE_FOLDER . self::ZIP_FILE_PREFIX); 277 $root_filesystem = Registry::filesystem()->root();
|
H A D | EditMediaFileAction.php | 115 $filesystem = $media->tree()->mediaFilesystem(); 120 if ($old !== $new && !$media_file->isExternal() && $filesystem->fileExists($old)) { 122 $file_exists = $filesystem->fileExists($old); 126 $filesystem->move($old, $new);
|
H A D | ImportGedcomPage.php | 61 $data_filesystem = Registry::filesystem()->data(); 62 $data_folder = Registry::filesystem()->dataName();
|
H A D | MapDataImportPage.php | 53 $data_filesystem = Registry::filesystem()->data(); 54 $data_filesystem_name = Registry::filesystem()->dataName();
|
H A D | ManageMediaPage.php | 57 $data_filesystem = Registry::filesystem()->data(); 58 $data_filesystem_name = Registry::filesystem()->dataName();
|
H A D | ControlPanel.php | 135 $filesystem = new Filesystem(new LocalFilesystemAdapter(Webtrees::ROOT_DIR)); 136 $files_to_delete = $this->housekeeping_service->deleteOldWebtreesFiles($filesystem); 143 …$gedcom_file_count = $this->admin_service->gedcomFiles(Registry::filesystem()->data())->coun…
|
H A D | ManageMediaData.php | 94 $data_filesystem = Registry::filesystem()->data(); 133 $mime_type = Registry::filesystem()->data()->mimeType($path);
|
H A D | ManageMediaAction.php | 54 $data_filesystem = Registry::filesystem()->data();
|
H A D | UploadMediaPage.php | 61 $data_filesystem = Registry::filesystem()->data();
|
H A D | SitePreferencesPage.php | 69 'data_folder' => Registry::filesystem()->dataName(),
|
H A D | CleanDataFolder.php | 61 $data_filesystem = Registry::filesystem()->data();
|
H A D | DeletePath.php | 67 $data_filesystem = Registry::filesystem()->data();
|
H A D | ManageTrees.php | 67 …$gedcom_file_count = $this->admin_service->gedcomFiles(Registry::filesystem()->data())->coun…
|
H A D | ExportGedcomServer.php | 69 $data_filesystem = Registry::filesystem()->data();
|
H A D | UploadMediaAction.php | 70 $data_filesystem = Registry::filesystem()->data();
|
/webtrees/app/Contracts/ |
H A D | ImageFactoryInterface.php | 35 …public function fileResponse(FilesystemOperator $filesystem, string $path, bool $download): Respon… argument 41 FilesystemOperator $filesystem, argument
|
/webtrees/app/Http/Middleware/ |
H A D | DoHousekeeping.php | 75 $this->runHousekeeping(Registry::filesystem()->data(), Registry::filesystem()->root());
|
/webtrees/ |
H A D | composer.lock | 1353 "illuminate/filesystem": "Required to use the migrations (^11.0).", 1473 "illuminate/filesystem": "Required to use the composer class (^11.0).", 1979 "filesystem", 2028 "description": "Local filesystem adapter for Flysystem.", 2033 "filesystem", 2075 "description": "Path prefixing filesystem adapter for Flysystem.", 2078 "filesystem", 2123 "description": "ZIP filesystem adapter for Flysystem.", 2128 "filesystem", 3839 "symfony/filesystem": "^6.4|^7.0", [all …]
|