You are here

public function WkhtmltopdfController::__construct in wkhtmltopdf 2.0.x

Same name and namespace in other branches
  1. 8 src/Controller/WkhtmltopdfController.php \Drupal\wkhtmltopdf\Controller\WkhtmltopdfController::__construct()

File

src/Controller/WkhtmltopdfController.php, line 49

Class

WkhtmltopdfController
A Controller to generate PDFs and return them as a binary reponse.

Namespace

Drupal\wkhtmltopdf\Controller

Code

public function __construct(ConfigFactory $config, Request $request, FileSystemInterface $filesystem, LoggerChannelInterface $logger) {
  $this->settings = $config
    ->get('wkhtmltopdf.settings');
  $this->request = $request;
  $this->filesystem = $filesystem;
  $this->logger = $logger;
}