Skip to content
Snippets Groups Projects

Issue #3511049 by macsim: Drush 12/13 compatibility

8 files
+ 38
30
Compare changes
  • Side-by-side
  • Inline
Files
8
<?php
<?php
namespace Drupal\search_api_solr_admin\Commands;
namespace Drupal\search_api_solr_admin\Drush\Commands;
use Consolidation\AnnotatedCommand\Input\StdinAwareInterface;
use Consolidation\AnnotatedCommand\Input\StdinAwareInterface;
use Consolidation\AnnotatedCommand\Input\StdinAwareTrait;
use Consolidation\AnnotatedCommand\Input\StdinAwareTrait;
@@ -9,6 +9,7 @@ use Drupal\search_api_solr\SearchApiSolrException;
@@ -9,6 +9,7 @@ use Drupal\search_api_solr\SearchApiSolrException;
use Drupal\search_api_solr\SolrBackendInterface;
use Drupal\search_api_solr\SolrBackendInterface;
use Drupal\search_api_solr_admin\Utility\SolrAdminCommandHelper;
use Drupal\search_api_solr_admin\Utility\SolrAdminCommandHelper;
use Drush\Commands\DrushCommands;
use Drush\Commands\DrushCommands;
 
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\LoggerInterface;
/**
/**
@@ -36,6 +37,15 @@ class SearchApiSolrAdminCommands extends DrushCommands implements StdinAwareInte
@@ -36,6 +37,15 @@ class SearchApiSolrAdminCommands extends DrushCommands implements StdinAwareInte
$this->commandHelper = $commandHelper;
$this->commandHelper = $commandHelper;
}
}
 
/**
 
* {@inheritdoc}
 
*/
 
public static function create(ContainerInterface $container): self {
 
return new static(
 
$container->get('search_api_solr_admin.command_helper'),
 
);
 
}
 
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
Loading