Skip to content
Snippets Groups Projects
Commit fa84d68c authored by József Dudás's avatar József Dudás
Browse files

Issue #3513638 by szantog: D11 compatibility

parent 947323d2
Branches 3.x
Tags 3.0.1
1 merge request!4Issue #3513638 by szantog: D11 compatibility
name: 'Easy Google Analytics Counter'
type: module
description: 'This is the easy analytics counter module.'
core_version_requirement: ^9 || ^10
core_version_requirement: ^9 || ^10 || ^11
configure: easy_google_analytics_counter.admin_form
package: 'Custom'
services:
easy_google_analytics_counter.connection:
parent: container.trait
class: Drupal\easy_google_analytics_counter\ConnectionService
arguments:
- '@service_container'
......@@ -5,8 +5,6 @@ namespace Drupal\easy_google_analytics_counter;
use Drupal\Core\Config\ImmutableConfig;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
// --------- Use from google analytics library ----------.
use Google\Analytics\Data\V1beta\BetaAnalyticsDataClient;
......@@ -17,14 +15,17 @@ use Google\Analytics\Data\V1beta\FilterExpression;
use Google\Analytics\Data\V1beta\Metric;
use Google\Analytics\Data\V1beta\OrderBy;
use Google\Analytics\Data\V1beta\RunReportResponse;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Class ConnectionService for Google data api.
*/
class ConnectionService implements ContainerAwareInterface, ConnectionServiceInterface {
class ConnectionService implements ConnectionServiceInterface {
use ContainerAwareTrait;
public function __construct(
protected readonly ContainerInterface $container,
) {
}
/**
* Drupal\Core\Config\ImmutableConfig definition.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment