You are here

public function AddressService::__construct in Geocoder 8.2

Same name and namespace in other branches
  1. 8.3 modules/geocoder_address/src/AddressService.php \Drupal\geocoder_address\AddressService::__construct()

AddressService constructor.

Parameters

\CommerceGuys\Addressing\AddressFormat\AddressFormatRepositoryInterface $address_format_repository: The address format repository.

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

\CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface $subdivision_repository: The postal label formatter.

File

modules/geocoder_address/src/AddressService.php, line 52

Class

AddressService
Class AddressService.

Namespace

Drupal\geocoder_address

Code

public function __construct(AddressFormatRepositoryInterface $address_format_repository, CountryRepositoryInterface $country_repository, SubdivisionRepositoryInterface $subdivision_repository) {
  $this->addressFormatRepository = $address_format_repository;
  $this->countryRepository = $country_repository;
  $this->subdivisionRepository = $subdivision_repository;
}