Breaking: #92289 - Decouple logic of ResourceFactory into StorageRepository¶
ResourceFactory class was initially created for the File Abstraction Layer (FAL)
as a Factory class, which created PHP objects.
However, in the recent years, it became apparent that it is more useful to separate the concerns of the creation and retrieving of existing information.
For this reason, the
StorageRepository class is now handling the creation of
ResourceStorage objects. This layer accesses the Database and the needed Driver
objects and configuration.
StorageRepository class does not extend from
and is available standalone.
Most of the logic in the
ResourceFactory concerning Storages has been moved to
StorageRepository, which has a lot of options available now.
The following methods within
ResourceFactory have been marked
as internal, and are kept for backwards-compatibility without deprecation:
The following method has been removed
Calling the removed method will throw a fatal error.
StorageRepository for an instance of
will have different results.
TYPO3 installations with specific third-party extensions working with the FAL API directly might use the existing functionality.
Migrate to the
StorageRepository API in the third-party extension code.