You are here

public function GoogleAnalyticsCounterAuthManager::__construct in Google Analytics Counter 8.3

Constructs a Google Analytics Counter object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Database\Connection $connection: A database connection.

\Drupal\Core\State\StateInterface $state: The state of the drupal site.

\Psr\Log\LoggerInterface $logger: A logger instance.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

File

src/GoogleAnalyticsCounterAuthManager.php, line 78

Class

GoogleAnalyticsCounterAuthManager
Class GoogleAnalyticsAuthManager.

Namespace

Drupal\google_analytics_counter

Code

public function __construct(ConfigFactoryInterface $config_factory, Connection $connection, StateInterface $state, LoggerInterface $logger, MessengerInterface $messenger) {
  $this->config = $config_factory
    ->get('google_analytics_counter.settings');
  $this->connection = $connection;
  $this->state = $state;
  $this->logger = $logger;
  $this->messenger = $messenger;
}