You are here

public function AdsTxtController::__construct in AdsTxt 8

Constructs a AdsTxtController object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config: Configuration object factory.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

File

src/Controller/AdsTxtController.php, line 40

Class

AdsTxtController
Provides output ads.txt output.

Namespace

Drupal\adstxt\Controller

Code

public function __construct(ConfigFactoryInterface $config, ModuleHandlerInterface $module_handler) {
  $this->moduleConfig = $config
    ->get('adstxt.settings');
  $this->moduleHandler = $module_handler;
}