public function DeprecationAnalyzer::__construct in Upgrade Status 8.2
Same name and namespace in other branches
- 8.3 src/DeprecationAnalyzer.php \Drupal\upgrade_status\DeprecationAnalyzer::__construct()
Constructs a deprecation analyzer.
Parameters
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key/value factory.
\Psr\Log\LoggerInterface $logger: The logger.
\GuzzleHttp\Client $http_client: HTTP client.
\Drupal\Core\File\FileSystemInterface $file_system: File system service.
\Drupal\Core\Template\TwigEnvironment $twig_environment: The Twig environment.
\Drupal\upgrade_status\LibraryDeprecationAnalyzer $library_deprecation_analyzer: The library deprecation analyzer.
\Drupal\upgrade_status\ThemeFunctionDeprecationAnalyzer $theme_function_deprecation_analyzer: The theme function deprecation analyzer.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
File
- src/
DeprecationAnalyzer.php, line 144
Class
Namespace
Drupal\upgrade_statusCode
public function __construct(KeyValueFactoryInterface $key_value_factory, LoggerInterface $logger, Client $http_client, FileSystemInterface $file_system, TwigEnvironment $twig_environment, LibraryDeprecationAnalyzer $library_deprecation_analyzer, ThemeFunctionDeprecationAnalyzer $theme_function_deprecation_analyzer, TimeInterface $time) {
$this->scanResultStorage = $key_value_factory
->get('upgrade_status_scan_results');
$this->logger = $logger;
$this->httpClient = $http_client;
$this->fileSystem = $file_system;
$this->twigEnvironment = $twig_environment;
$this->libraryDeprecationAnalyzer = $library_deprecation_analyzer;
$this->themeFunctionDeprecationAnalyzer = $theme_function_deprecation_analyzer;
$this->time = $time;
}