public function OrderSubscriber::__construct in Drupal Commerce Connector for AvaTax 8
Constructs a new CommitTransactionSubscriber object.
Parameters
\Drupal\commerce_avatax\AvataxLibInterface $avatax_lib: The AvaTax library.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
File
- src/
EventSubscriber/ OrderSubscriber.php, line 38
Class
Namespace
Drupal\commerce_avatax\EventSubscriberCode
public function __construct(AvataxLibInterface $avatax_lib, ConfigFactoryInterface $config_factory) {
$this->avataxLib = $avatax_lib;
$this->config = $config_factory
->get('commerce_avatax.settings');
}