#61352Developer context configuration for FAL drivers
Description
There will be a need for developer context dependent configuration of a FAL driver if it is NOT local. With the local FAL driver it’s a simple to sync all stages with the resources.
If you have a live stage connected to a cloud service, the file references will be individually for this environment. If you have another stage like develop or staging, you need another similar cloud connection. Cause if you make changes on one of the other stages the file references will collide whith the one on the live stage.
Therefore a feature is needed to override the FlexForm cofiguration to set e.g. other account settings. I think this can be done by page TSconfig.
Perhaps there is another way to handle more then one stage I did’n know…?
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 3
-
Arno Dudek commented 09/06/14, 12:56
-
Mathias Schreiber changed status
NewAccepted 02/03/18, 22:04 -
Georg Ringer commented and changed status
AcceptedRejected 06/12/24, 06:11Hello Arno,
thanks for the issue! I am closing it as won’t fix. If this is still valid for you or anyone writing an adapter, feel free to open a new issue
This can be a simple and light solution to override the configuration dynamicly.
// The key "[1]" is the uid of the storage record. $GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['overrideStorageConfiguration'][1] = array( 'basePath' => '/', 'pathType' => 'relative' );And then in the file
typo3/sysext/core/Classes/Resource/ResourceFactory.phpat the functiongetStorageObjectbefore creating the object atif (!$storageObject instanceof ResourceStorage)if (isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['overrideStorageConfiguration'][$uid])) { \TYPO3\CMS\Core\Utility\GeneralUtility::array_merge($storageConfiguration, $GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['overrideStorageConfiguration'][$uid]); }This is not tested, but should work.