You are here

public function PathautoCommands::__construct in Pathauto 8

Constructs a new PathautoCommands object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration object factory.

\Drupal\pathauto\AliasTypeManager $aliasTypeManager: The alias type manager.

\Drupal\pathauto\AliasStorageHelperInterface $aliasStorageHelper: The alias storage helper.

File

src/Commands/PathautoCommands.php, line 58

Class

PathautoCommands
Drush commands allowing to perform Pathauto tasks from the command line.

Namespace

Drupal\pathauto\Commands

Code

public function __construct(ConfigFactoryInterface $configFactory, AliasTypeManager $aliasTypeManager, AliasStorageHelperInterface $aliasStorageHelper) {
  $this->configFactory = $configFactory;
  $this->aliasTypeManager = $aliasTypeManager;
  $this->aliasStorageHelper = $aliasStorageHelper;
}