Esempio n. 1
0
 protected static function registerKnownTypes()
 {
     if (!empty(static::$registeredByServerType)) {
         return;
     }
     static::register(LocalFileClient::getServerType(), LocalFileClient::getClassName());
     static::register(RemoteFileClient::getServerType(), RemoteFileClient::getClassName());
     static::register(GitLabRepoClient::getServerType(), GitLabRepoClient::getClassName());
 }
 /**
  * Get the file server type identifier corresponding to the client's implementation.
  *
  * @return string|null If fallback class for all server types.
  */
 public static function getServerType()
 {
     return RemoteFileClient::getServerType();
 }