You are here

public function XmlSitemapCommands::__construct in XML sitemap 2.x

Same name and namespace in other branches
  1. 8 src/Commands/XmlSitemapCommands.php \Drupal\xmlsitemap\Commands\XmlSitemapCommands::__construct()

XmlSitemapCommands constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config.factory service.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module_handler service.

\Drupal\Core\Database\Connection $connection: Default database connection.

File

src/Commands/XmlSitemapCommands.php, line 46

Class

XmlSitemapCommands
Drush commands for XML sitemap.

Namespace

Drupal\xmlsitemap\Commands

Code

public function __construct(ConfigFactoryInterface $configFactory, ModuleHandlerInterface $moduleHandler, Connection $connection) {
  parent::__construct();
  $this->configFactory = $configFactory;
  $this->moduleHandler = $moduleHandler;
  $this->connection = $connection;
}