Skip to content
Snippets Groups Projects

Remove Drupal logger from command class

2 files
+ 0
12
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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.
*
Loading