public function UpdateFetcher::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/update/src/UpdateFetcher.php \Drupal\update\UpdateFetcher::__construct()
Constructs a UpdateFetcher.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\GuzzleHttp\ClientInterface $http_client: A Guzzle client object.
File
- core/
modules/ update/ src/ UpdateFetcher.php, line 56 - Contains \Drupal\update\UpdateFetcher.
Class
- UpdateFetcher
- Fetches project information from remote locations.
Namespace
Drupal\updateCode
public function __construct(ConfigFactoryInterface $config_factory, ClientInterface $http_client) {
$this->fetchUrl = $config_factory
->get('update.settings')
->get('fetch.url');
$this->httpClient = $http_client;
$this->updateSettings = $config_factory
->get('update.settings');
}