You are here

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

Constructs a new AddressValidator object.

Parameters

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

\Drupal\Core\Render\Renderer $renderer: The renderer.

\CommerceGuys\Addressing\Country\CountryRepositoryInterface $country_repository: The country repository.

File

src/Controller/AddressValidator.php, line 50

Class

AddressValidator
Address validator controller.

Namespace

Drupal\commerce_avatax\Controller

Code

public function __construct(AvataxLibInterface $avatax_lib, Renderer $renderer, CountryRepositoryInterface $country_repository) {
  $this->avataxLib = $avatax_lib;
  $this->renderer = $renderer;
  $this->countryRepository = $country_repository;
}