You are here

public function Connect::__construct in Commerce Square Connect 8

Constructs a new Connect object.

Parameters

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

\Drupal\Core\State\StateInterface $state: The state.

File

src/Connect.php, line 37

Class

Connect
Represents the Connect application for Square.

Namespace

Drupal\commerce_square

Code

public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state) {
  $this->settings = $config_factory
    ->get('commerce_square.settings');
  $this->state = $state;
}