public function AutomaticUpdatesPsa::__construct in Automatic Updates 8
AutomaticUpdatesPsa constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
\GuzzleHttp\Client $client: The HTTP client.
\Drupal\Core\Extension\ExtensionList $module: The module extension list.
\Drupal\Core\Extension\ExtensionList $profile: The profile extension list.
\Drupal\Core\Extension\ExtensionList $theme: The theme extension list.
\Psr\Log\LoggerInterface $logger: The logger.
File
- src/
Services/ AutomaticUpdatesPsa.php, line 100
Class
- AutomaticUpdatesPsa
- Class AutomaticUpdatesPsa.
Namespace
Drupal\automatic_updates\ServicesCode
public function __construct(ConfigFactoryInterface $config_factory, CacheBackendInterface $cache, TimeInterface $time, Client $client, ExtensionList $module, ExtensionList $profile, ExtensionList $theme, LoggerInterface $logger) {
$this->config = $config_factory
->get('automatic_updates.settings');
$this->cache = $cache;
$this->time = $time;
$this->httpClient = $client;
$this->module = $module;
$this->profile = $profile;
$this->theme = $theme;
$this->logger = $logger;
}