From d7e45ca33f42f89bff1386bef0225066beb4b342 Mon Sep 17 00:00:00 2001 From: Steve Worley Date: Fri, 17 Mar 2023 13:16:47 +1000 Subject: [PATCH] Fix lint. --- quant.services.yml | 2 +- src/Commands/QuantDrushCommands.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/quant.services.yml b/quant.services.yml index aa5aac7e..98a79ca6 100644 --- a/quant.services.yml +++ b/quant.services.yml @@ -40,4 +40,4 @@ services: quant.queue_factory: class: Drupal\quant\QuantQueueFactory - parent: queue.database \ No newline at end of file + parent: queue.database diff --git a/src/Commands/QuantDrushCommands.php b/src/Commands/QuantDrushCommands.php index 0f1a050c..dca3827e 100644 --- a/src/Commands/QuantDrushCommands.php +++ b/src/Commands/QuantDrushCommands.php @@ -2,6 +2,7 @@ namespace Drupal\quant\Commands; +use Drupal\Core\Site\Settings; use Drush\Commands\DrushCommands; use Drupal\Core\Form\FormState; use Drupal\quant\Seed; @@ -72,7 +73,7 @@ private function getDrushPath() { * @usage quant:run-queue --threads=5 */ public function message($options = ['threads' => 5]) { - $queue_factory = \Drupal\Core\Site\Settings::get('queue_service_quant_seed_worker'); + $queue_factory = Settings::get('queue_service_quant_seed_worker'); if (empty($queue_factory)) { $this->output()->writeln('Drush support is not configured' . PHP_EOL);