public function ConfigUpdateUiCliService::setLogger in Configuration Update Manager 8
Registers a logger and sets the Drush version.
Parameters
\Psr\Log\LoggerInterface $logger: The logging object to use. For Drush 8, use an object of class \Drupal\config_ui\ConfigUpdateUiDrush8Logger (or a subclass). For Drush 9 and later, use the output of \Drush\Drush::logger().
File
- config_update_ui/
src/ ConfigUpdateUiCliService.php, line 319
Class
- ConfigUpdateUiCliService
- Handles all the logic for commands for various versions of Drush.
Namespace
Drupal\config_update_uiCode
public function setLogger(LoggerInterface $logger) {
$this->logger = $logger;
}