Skip to content

Remove deprecated framework interfaces #32331

Open
@vlmed

Description

@vlmed

Description

This issue is a part of #32062.

The following deprecated interface should be removed in 2.5-develop branch:
lib/internal/Magento/Framework/Filesystem/ExtendedDriverInterface.php.

Implementation will be merged into \Magento\Framework\Filesystem\DriverInterface.

Problem

If we move getMetadata () to DriverInterface, we need to implement this method in the classes that implement this interface.

The following classes implements DriverInterface:

  • \Magento\Framework\Filesystem\Driver\File
  • \Magento\Framework\Filesystem\Driver\StatefulFile - deprecated

\Magento\Framework\Filesystem\ExtendedDriverInterface extends \Magento\Framework\Exception\FileSystemException\DriverInterface

Magento\RemoteStorage\Driver\RemoteDriverInterface extends \Magento\Framework\Filesystem\ExtendedDriverInterface

ExtendedDriverInterface has one additional method getMetadata(). This method is implemented only in 1 class
\Magento\AwsS3\Driver\AwsS3 which implements RemoteDriverInterface;

Possible solutions

We have 2 ways:

  1. Move the getMetadata () method to DriverInterface and implement this method in \Magento\Framework\Filesystem\Driver\File and \Magento\Framework\Filesystem\Driver\StatefulFile

OR

  1. Move the getMetadata()method to RemoteDriverInterface because this method used only in \Magento\AwsS3\Driver\AwsS3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions