You are here

public function ResponseSubscriber::__construct in Analytics 8

Constructs a new ResponseSubscriber.

Parameters

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

File

src/EventSubscriber/ResponseSubscriber.php, line 28

Class

ResponseSubscriber
Analytics ResponseSubscriber.

Namespace

Drupal\analytics\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config) {
  $this->config = $config
    ->get('analytics.settings');
}