Closed
Description
- 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
withMagento\MediaGallerySynchronization\Model\Filesystem\GetFileInfo:execute(string $path): FileInfo
service SplFileInfoFactory::execute
should accept$path
to file as a parameter, createSplFileInfo
based on the path and extract the data fromSplFileInfo
to populate theFileInfo
instance.