public function ModifiedFiles::__construct in Automatic Updates 8
Same name in this branch
- 8 src/ReadinessChecker/ModifiedFiles.php \Drupal\automatic_updates\ReadinessChecker\ModifiedFiles::__construct()
- 8 src/Services/ModifiedFiles.php \Drupal\automatic_updates\Services\ModifiedFiles::__construct()
ModifiedFiles constructor.
Parameters
\Psr\Log\LoggerInterface $logger: The logger.
\GuzzleHttp\ClientInterface $http_client: The HTTP client.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
File
- src/
Services/ ModifiedFiles.php, line 57
Class
- ModifiedFiles
- Modified files service.
Namespace
Drupal\automatic_updates\ServicesCode
public function __construct(LoggerInterface $logger, ClientInterface $http_client, ConfigFactoryInterface $config_factory) {
$this->logger = $logger;
$this->httpClient = $http_client;
$this->configFactory = $config_factory;
$project_root = drupal_get_path('module', 'automatic_updates');
require_once $project_root . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
}