Skip to content
Snippets Groups Projects
Commit 6b44dda2 authored by Dieter Holvoet's avatar Dieter Holvoet Committed by Sascha Grossenbacher
Browse files

Issue #3463377 by dieterholvoet: Drush 13 compatibility

parent 8b1a7299
No related branches found
No related tags found
1 merge request!51Remove Drupal logger from command class
Pipeline #255208 passed with warnings
services:
ultimate_cron.commands:
class: Drupal\ultimate_cron\Commands\UltimateCronCommands
arguments: ['@logger.factory']
tags:
- { name: drush.command }
......@@ -3,7 +3,6 @@
namespace Drupal\ultimate_cron\Commands;
use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\ultimate_cron\CronPlugin;
use Drupal\ultimate_cron\Entity\CronJob;
use Drush\Commands\DrushCommands;
......@@ -15,16 +14,6 @@ use Drush\Commands\DrushCommands;
*/
class UltimateCronCommands extends DrushCommands {
/**
* Constructs an UltimateCronCommands object.
*
* @param \Drupal\Core\Logger\LoggerChannelFactoryInterface $logger
* Logger factory object.
*/
public function __construct(LoggerChannelFactoryInterface $logger) {
$this->logger = $logger->get('ultimate_cron');
}
/**
* Show a cron jobs logs.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment