Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveworley committed Mar 17, 2023
1 parent cf8c357 commit d7e45ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quant.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ services:

quant.queue_factory:
class: Drupal\quant\QuantQueueFactory
parent: queue.database
parent: queue.database
3 changes: 2 additions & 1 deletion src/Commands/QuantDrushCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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('<error>Drush support is not configured</error>' . PHP_EOL);
Expand Down

0 comments on commit d7e45ca

Please sign in to comment.