You are here

public function CurrencyRepository::__construct in Commerce Core 8.2

Constructs a new CurrencyRepository object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

modules/price/src/Repository/CurrencyRepository.php, line 35

Class

CurrencyRepository
Defines the currency repository.

Namespace

Drupal\commerce_price\Repository

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct();
  $this->currencyStorage = $entity_type_manager
    ->getStorage('commerce_currency');
}