public function GoogleAnalyticsCounterAppManager::__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.
\Drupal\Core\Path\AliasManagerInterface $alias_manager: The path alias manager to find aliased resources.
\Drupal\Core\Path\PathMatcherInterface $path_matcher: The path matcher.
\Drupal\Core\Language\LanguageManagerInterface $language: The language manager.
\Psr\Log\LoggerInterface $logger: A logger instance.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Drupal\google_analytics_counter\GoogleAnalyticsCounterAuthManagerInterface $auth_manager: Google Analytics Counter Auth Manager object.
File
- src/
GoogleAnalyticsCounterAppManager.php, line 123
Class
- GoogleAnalyticsCounterAppManager
- Class GoogleAnalyticsCounterAppManager.
Namespace
Drupal\google_analytics_counterCode
public function __construct(ConfigFactoryInterface $config_factory, Connection $connection, StateInterface $state, AliasManagerInterface $alias_manager, PathMatcherInterface $path_matcher, LanguageManagerInterface $language, LoggerInterface $logger, MessengerInterface $messenger, GoogleAnalyticsCounterAuthManagerInterface $auth_manager) {
$this->config = $config_factory
->get('google_analytics_counter.settings');
$this->connection = $connection;
$this->state = $state;
$this->aliasManager = $alias_manager;
$this->pathMatcher = $path_matcher;
$this->languageManager = $language;
$this->logger = $logger;
$this->messenger = $messenger;
$this->authManager = $auth_manager;
}