X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=includes%2Fexternalstore%2FExternalStoreFactory.php;h=9998640dddc1874fb11b92aec75bd925c499506d;hb=995aad376af72419dd2fe8870954c9b400be4766;hp=3f78b8b09e6b8108cbb9e6cebe197c36824dd37c;hpb=9c36c584ffe4c4650083bd158b13ce2efde34268;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/externalstore/ExternalStoreFactory.php b/includes/externalstore/ExternalStoreFactory.php index 3f78b8b09e..9998640ddd 100644 --- a/includes/externalstore/ExternalStoreFactory.php +++ b/includes/externalstore/ExternalStoreFactory.php @@ -55,7 +55,7 @@ class ExternalStoreFactory implements LoggerAwareInterface { } /** - * @return string[] List of base URLs for writes, e.g. [ "DB://cluster1" ] + * @return string[] List of default base URLs for writes, e.g. [ "DB://cluster1" ] * @since 1.34 */ public function getWriteBaseUrls() { @@ -88,14 +88,6 @@ class ExternalStoreFactory implements LoggerAwareInterface { $params['domain'] = $this->localDomainId; // default $params['isDomainImplicit'] = true; // b/c for ExternalStoreDB } - $params['writableLocations'] = []; - // Determine the locations for this protocol/store still receiving writes - foreach ( $this->writeBaseUrls as $storeUrl ) { - list( $storeProto, $storePath ) = self::splitStorageUrl( $storeUrl ); - if ( $protoLowercase === strtolower( $storeProto ) ) { - $params['writableLocations'][] = $storePath; - } - } // @TODO: ideally, this class should not hardcode what classes need what backend factory // objects. For now, inject the factory instances into __construct() for those that do. if ( $protoLowercase === 'db' ) {