You are here

public function FileUrlGenerator::__construct in CDN 8.3

Constructs a new CDN file URL generator object.

Parameters

string $root: The app root.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\PrivateKey $private_key: The private key service.

\Drupal\cdn\CdnSettings $cdn_settings: The CDN settings service.

File

src/File/FileUrlGenerator.php, line 74

Class

FileUrlGenerator
Generates CDN file URLs.

Namespace

Drupal\cdn\File

Code

public function __construct($root, StreamWrapperManagerInterface $stream_wrapper_manager, RequestStack $request_stack, PrivateKey $private_key, CdnSettings $cdn_settings) {
  $this->root = $root;
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->requestStack = $request_stack;
  $this->privateKey = $private_key;
  $this->settings = $cdn_settings;
}