You are here

public function BrightcoveSubscriptionController::__construct in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Controller/BrightcoveSubscriptionController.php \Drupal\brightcove\Controller\BrightcoveSubscriptionController::__construct()
  2. 3.x src/Controller/BrightcoveSubscriptionController.php \Drupal\brightcove\Controller\BrightcoveSubscriptionController::__construct()

BrightcoveSubscriptionController constructor.

Parameters

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

\Drupal\Core\Utility\LinkGeneratorInterface $link_generator: Link generator.

\Drupal\Core\Entity\EntityStorageInterface $video_storage: Brightcove video storage.

File

src/Controller/BrightcoveSubscriptionController.php, line 68

Class

BrightcoveSubscriptionController
Provides controller for subscription related callbacks.

Namespace

Drupal\brightcove\Controller

Code

public function __construct(Connection $connection, LinkGeneratorInterface $link_generator, EntityStorageInterface $video_storage) {
  $this->connection = $connection;
  $this->linkGenerator = $link_generator;
  $this->videoStorage = $video_storage;
}