You are here

public function ChainCountryResolver::__construct in Price 2.0.x

Same name and namespace in other branches
  1. 8 src/Resolver/ChainCountryResolver.php \Drupal\price\Resolver\ChainCountryResolver::__construct()
  2. 3.x src/Resolver/ChainCountryResolver.php \Drupal\price\Resolver\ChainCountryResolver::__construct()
  3. 2.x src/Resolver/ChainCountryResolver.php \Drupal\price\Resolver\ChainCountryResolver::__construct()
  4. 3.0.x src/Resolver/ChainCountryResolver.php \Drupal\price\Resolver\ChainCountryResolver::__construct()

Constructs a new ChainCountryResolver object.

Parameters

\Drupal\price\Resolver\CountryResolverInterface[] $resolvers: The resolvers.

File

src/Resolver/ChainCountryResolver.php, line 23

Class

ChainCountryResolver
Default implementation of the chain country resolver.

Namespace

Drupal\price\Resolver

Code

public function __construct(array $resolvers = []) {
  $this->resolvers = $resolvers;
}