Commit 7b8d4375 authored by alexpott's avatar alexpott
Browse files

Issue #2239425 by cs_shadow, Mixologic, JacobSanford | penyaskito: Invalid...

Issue #2239425 by cs_shadow, Mixologic, JacobSanford | penyaskito: Invalid TranslatorInterface type hinting in LanguageRequestSubscriber.
parent 406da319
...@@ -27,7 +27,7 @@ class TranslationManager implements TranslationInterface, TranslatorInterface { ...@@ -27,7 +27,7 @@ class TranslationManager implements TranslationInterface, TranslatorInterface {
* An array of active translators keyed by priority. * An array of active translators keyed by priority.
* *
* @var array * @var array
* Array of \Drupal\Core\Translation\Translator\TranslatorInterface objects * Array of \Drupal\Core\StringTranslation\Translator\TranslatorInterface objects
*/ */
protected $translators = array(); protected $translators = array();
...@@ -77,12 +77,12 @@ public function initLanguageManager() { ...@@ -77,12 +77,12 @@ public function initLanguageManager() {
/** /**
* Appends a translation system to the translation chain. * Appends a translation system to the translation chain.
* *
* @param \Drupal\Core\Translation\Translator\TranslatorInterface $translator * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator
* The translation interface to be appended to the translation chain. * The translation interface to be appended to the translation chain.
* @param int $priority * @param int $priority
* The priority of the logger being added. * The priority of the logger being added.
* *
* @return \Drupal\Core\Translation\TranslationManager * @return \Drupal\Core\StringTranslation\TranslationManager
* The called object. * The called object.
*/ */
public function addTranslator(TranslatorInterface $translator, $priority = 0) { public function addTranslator(TranslatorInterface $translator, $priority = 0) {
......
...@@ -38,7 +38,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface { ...@@ -38,7 +38,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
/** /**
* The translation service. * The translation service.
* *
* @var \Drupal\Core\Translation\Translator\TranslatorInterface * @var \Drupal\Core\StringTranslation\Translator\TranslatorInterface;
*/ */
protected $translation; protected $translation;
...@@ -56,7 +56,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface { ...@@ -56,7 +56,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
* The language manager service. * The language manager service.
* @param \Drupal\language\LanguageNegotiatorInterface * @param \Drupal\language\LanguageNegotiatorInterface
* The language negotiator. * The language negotiator.
* @param \Drupal\Core\Translation\Translator\TranslatorInterface $translation * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translation;
* The translation service. * The translation service.
* @param \Drupal\Core\Session\AccountInterface $current_user * @param \Drupal\Core\Session\AccountInterface $current_user
* The current active user. * The current active user.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment