Skip to content
Snippets Groups Projects

Issue #3418728: Drush 12 compatibility

Files
2
<?php
namespace Drupal\scheduler\Commands;
namespace Drupal\scheduler\Drush\Commands;
use Drupal\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Messenger\MessengerInterface;
use Drupal\scheduler\SchedulerManager;
use Drush\Commands\DrushCommands;
@@ -40,6 +41,16 @@ class SchedulerCommands extends DrushCommands {
$this->messenger = $messenger;
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container): self {
return new static(
$container->get('scheduler.manager'),
$container->get('messenger')
);
}
/**
* Lightweight cron to process Scheduler module tasks.
*
Loading