Example #1
0
 /**
  * Determines if we can add external shared to this instance
  *
  * @return array<bool,string>
  */
 private function getServer2ServerProperties()
 {
     $server2ServerSharing = $this->appConfig->getAppValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes');
     $server2ServerSharing = $server2ServerSharing === 'yes' ? true : false;
     $password = $this->environment->getSharePassword();
     $passwordProtected = $password ? 'true' : 'false';
     return [$server2ServerSharing, $passwordProtected];
 }