diff --git a/modules/dgi_migrate_regenerate_pathauto_aliases/drush.services.yml b/modules/dgi_migrate_regenerate_pathauto_aliases/drush.services.yml index 00c0e8d0..8a1e1abf 100644 --- a/modules/dgi_migrate_regenerate_pathauto_aliases/drush.services.yml +++ b/modules/dgi_migrate_regenerate_pathauto_aliases/drush.services.yml @@ -1,13 +1,9 @@ services: - logger.channel.dgi_migrate_regenerate_pathauto_aliases: - parent: logger.channel_base - arguments: ['dgi_migrate_regenerate_pathauto_aliases'] dgi_migrate_regenerate_pathauto_aliases: class: \Drupal\dgi_migrate_regenerate_pathauto_aliases\Commands\Pathauto arguments: - '@pathauto.generator' - '@entity_type.manager' - '@entity_type.bundle.info' - - '@logger.channel.dgi_migrate_regenerate_pathauto_aliases' tags: - name: drush.command diff --git a/modules/dgi_migrate_regenerate_pathauto_aliases/src/Commands/Pathauto.php b/modules/dgi_migrate_regenerate_pathauto_aliases/src/Commands/Pathauto.php index ece58ebe..991e97eb 100644 --- a/modules/dgi_migrate_regenerate_pathauto_aliases/src/Commands/Pathauto.php +++ b/modules/dgi_migrate_regenerate_pathauto_aliases/src/Commands/Pathauto.php @@ -9,7 +9,6 @@ use Drupal\pathauto\PathautoGeneratorInterface; use Drupal\pathauto\PathautoState; use Drush\Commands\DrushCommands; -use Psr\Log\LoggerInterface; /** * Re-generates missing pathauto aliases. @@ -49,14 +48,11 @@ class Pathauto extends DrushCommands { * The entity type manager service. * @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info * The entity type bundle info service. - * @param \Psr\Log\LoggerInterface $logger - * A logger to which to log. */ - public function __construct(PathautoGeneratorInterface $pathauto_generator, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, LoggerInterface $logger) { + public function __construct(PathautoGeneratorInterface $pathauto_generator, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) { $this->pathautoGenerator = $pathauto_generator; $this->entityTypeManager = $entity_type_manager; $this->entityTypeBundleInfo = $entity_type_bundle_info; - $this->logger = $logger; } /**