You are here

public function CustomerProfileAlter::__construct in Drupal Commerce Connector for AvaTax 8

Constructs a new CustomerProfileAlter object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\commerce_avatax\AvataxLibInterface $avatax_lib: The AvaTax library.

\Drupal\Core\Access\CsrfTokenGenerator $csrf: The CSRF token generator.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

src/CustomerProfileAlter.php, line 62

Class

CustomerProfileAlter
The customer profile alter for address validation.

Namespace

Drupal\commerce_avatax

Code

public function __construct(ConfigFactoryInterface $config_factory, AvataxLibInterface $avatax_lib, CsrfTokenGenerator $csrf, TimeInterface $time) {
  $this->config = $config_factory
    ->get('commerce_avatax.settings');
  $this->avataxLib = $avatax_lib;
  $this->csrf = $csrf;
  $this->time = $time;
}