示例#1
0
 /**
  * Get configured server.
  * @return Server Configured Glide server.
  */
 public function getServer()
 {
     $server = new Server($this->getSource(), $this->getCache(), $this->getApi());
     $server->setSourcePathPrefix($this->getSourcePathPrefix());
     $server->setCachePathPrefix($this->getCachePathPrefix());
     $server->setDefaults($this->getDefaults());
     $server->setPresets($this->getPresets());
     $server->setBaseUrl($this->getBaseUrl());
     $server->setResponseFactory($this->getResponseFactory());
     return $server;
 }