You are here

public function FillPdfSettingsForm::__construct in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x src/Form/FillPdfSettingsForm.php \Drupal\fillpdf\Form\FillPdfSettingsForm::__construct()

Constructs a FillPdfSettingsForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\File\FileSystemInterface $file_system: Helpers to operate on files and stream wrappers.

\Drupal\fillpdf\Service\FillPdfAdminFormHelper $admin_form_helper: The FillPDF admin form helper service.

\GuzzleHttp\Client $http_client: The Guzzle HTTP client service.

\Drupal\fillpdf\ShellManager $shell_manager: The FillPDF shell manager.

\Drupal\fillpdf\Plugin\PdfBackendManager $backend_manager: The FillPDF backend manager.

Overrides ConfigFormBase::__construct

File

src/Form/FillPdfSettingsForm.php, line 78

Class

FillPdfSettingsForm
Configure FillPDF settings form.

Namespace

Drupal\fillpdf\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, FileSystemInterface $file_system, FillPdfAdminFormHelper $admin_form_helper, Client $http_client, ShellManager $shell_manager, PdfBackendManager $backend_manager) {
  parent::__construct($config_factory);
  $this->fileSystem = $file_system;
  $this->adminFormHelper = $admin_form_helper;
  $this->httpClient = $http_client;
  $this->shellManager = $shell_manager;
  $this->definitions = $backend_manager
    ->getDefinitions();
}