Issue Task Closed

#108390Introduction of Storage Adapters

Josua Vogel 12/03/25, 14:51 updated 03/31/26, 09:00

Description

The storage adapter pattern has been introduced to provide a clean separation of concerns for form persistence in TYPO3.

Previously, form storage logic was tightly coupled to specific storage implementations, making it difficult to extend or modify the persistence layer.
By introducing StorageAdapter implementations like ExtensionStorageAdapter, we achieve the following benefits:
  • Abstraction and Flexibility: Storage adapters provide a well-defined interface for form persistence operations (read, write, delete, exists), allowing different storage backends to be implemented without affecting the core persistence logic.
  • Clear Responsibility Boundaries: Each adapter is responsible for handling a specific storage type (e.g., extension-based storage), including validation of paths, security checks, and format verification.
  • Maintainability: Changes to storage mechanisms are isolated within their respective adapters, reducing the risk of side effects and making the codebase easier to maintain and extend.

This architectural improvement lays the foundation for supporting multiple storage backends while maintaining a consistent API for form persistence operations.

Reviews 2