You are here

public function CurrencyHelper::__construct in Commerce Currency Resolver 8

CurrencyHelper constructor.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: Request.

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: Core language manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Core module handler.

\Drupal\commerce_store\CurrentStoreInterface $current_store:

File

src/CurrencyHelper.php, line 83

Class

CurrencyHelper
Helper for various parts of the module.

Namespace

Drupal\commerce_currency_resolver

Code

public function __construct(RequestStack $request_stack, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entityTypeManager, LanguageManagerInterface $languageManager, ModuleHandlerInterface $module_handler, CurrentStoreInterface $current_store) {
  $this->requestStack = $request_stack;
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entityTypeManager;
  $this->languageManager = $languageManager;
  $this->moduleHandler = $module_handler;
  $this->currentStore = $current_store;
}