You are here

public function RequestTranslationSubscriber::__construct in TMGMT Translator Smartling 8.2

Same name and namespace in other branches
  1. 8.4 src/EventSubscriber/RequestTranslationSubscriber.php \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber::__construct()
  2. 8 src/EventSubscriber/RequestTranslationSubscriber.php \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber::__construct()
  3. 8.3 src/EventSubscriber/RequestTranslationSubscriber.php \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber::__construct()

File

src/EventSubscriber/RequestTranslationSubscriber.php, line 19

Class

RequestTranslationSubscriber

Namespace

Drupal\tmgmt_smartling\EventSubscriber

Code

public function __construct(QueueFactory $queue, TranslationJobToUrl $url_converter) {
  $this->contextUploadQueue = $queue
    ->get('smartling_context_upload', TRUE);
  $this->urlConverter = $url_converter;
}