Deprecation: #110762 - StorageRepository->createLocalStorage() and legacy keys 

See forge#110762

Description 

File storages are configured in config/system/file-storages.yaml, see Breaking: #110762 - File storages are configured in a file instead of the database. Two remains of the former database table are deprecated:

  • \TYPO3\CMS\Core\Resource\StorageRepository->createLocalStorage() is replaced by addLocalStorage() . The deprecated method keeps its signature and writes the file. A base path with the path type relative is resolved against the public path as before, the description is ignored.
  • Listeners of \TYPO3\CMS\Core\Resource\Event\BeforeResourceStorageInitializationEvent that pass the keys of the former sys_file_storage row to setRecord() , such as is_public or processingfolder , or a FlexForm string as configuration , are mapped to the normalized storage definition.

Impact 

Both trigger a PHP E_USER_DEPRECATED error. The extension scanner reports calls of createLocalStorage() .

Affected installations 

Installations with extensions that create local storages programmatically or modify storage records in a listener of BeforeResourceStorageInitializationEvent .

Migration 

Call addLocalStorage(string $name, string $basePath, bool $default = false) . Its base path is absolute or relative to the project path, so a path formerly relative to the public path is prefixed accordingly, for example 'public/fileadmin/' in a Composer based installation.

Listeners use the keys identifier , default , browsable , public , writable , online , autoExtractMetadata , processingFolder and an array as configuration .