Skip to content

Introduce internal class wrapping SplFileInfo #1727

Closed
magento/magento2
#29461
@sivaschenko

Description

@sivaschenko
  • Introduce Magento\MediaGallerySynchronization\Model\Filesystem\FileInfo class wrapping the PHP native \SplFileInfo class providing access to all it's getters
  • Replace Magento\MediaGallerySynchronization\Model\Filesystem\SplFileInfoFactory with Magento\MediaGallerySynchronization\Model\Filesystem\GetFileInfo:execute(string $path): FileInfo service
  • SplFileInfoFactory::execute should accept $path to file as a parameter, create SplFileInfo based on the path and extract the data from SplFileInfo to populate the FileInfo instance.

Metadata

Metadata

Assignees

Labels

Priority: P3May be fixed according to the position in the backlogProgress: doneSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions