Skip to content
Snippets Groups Projects

Issue #3439442: Drush 12 compat

7 files
+ 39
27
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -2,9 +2,10 @@
declare(strict_types=1);
namespace Drupal\schemadotorg_mapping_set\Commands;
namespace Drupal\schemadotorg_mapping_set\Drush\Commands;
use Consolidation\AnnotatedCommand\CommandData;
use Drupal\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\schemadotorg_mapping_set\SchemaDotOrgMappingSetManagerInterface;
use Drush\Commands\DrushCommands;
@@ -29,6 +30,16 @@ class SchemaDotOrgMappingSetCommands extends DrushCommands {
protected SchemaDotOrgMappingSetManagerInterface $schemaMappingSetManager
) {}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container): self {
return new static(
$container->get('config.factory'),
$container->get('schemadotorg_mapping_set.manager')
);
}
/* ************************************************************************ */
// Setup.
/* ************************************************************************ */
Loading