/** * 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->setGroupCacheInFolders($this->getGroupCacheInFolders()); $server->setCacheWithFileExtensions($this->getCacheWithFileExtensions()); $server->setDefaults($this->getDefaults()); $server->setPresets($this->getPresets()); $server->setBaseUrl($this->getBaseUrl()); $server->setResponseFactory($this->getResponseFactory()); return $server; }