summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2014-06-11 13:29:22 (GMT)
committerAlex Pott2014-06-11 13:29:22 (GMT)
commit7b8d4375a6029f1935eab1cd9c910df513da2f3f (patch)
treedfe84e70354f92e76ee15def21396b869a8d92ea
parent406da3196aff04dd1b46e0974e770ba3aa38a213 (diff)
Issue #2239425 by cs_shadow, Mixologic, JacobSanford | penyaskito: Invalid TranslatorInterface type hinting in LanguageRequestSubscriber.
-rw-r--r--core/lib/Drupal/Core/StringTranslation/TranslationManager.php6
-rw-r--r--core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/core/lib/Drupal/Core/StringTranslation/TranslationManager.php b/core/lib/Drupal/Core/StringTranslation/TranslationManager.php
index bd1b3b3..23deb8c 100644
--- a/core/lib/Drupal/Core/StringTranslation/TranslationManager.php
+++ b/core/lib/Drupal/Core/StringTranslation/TranslationManager.php
@@ -27,7 +27,7 @@ class TranslationManager implements TranslationInterface, TranslatorInterface {
* An array of active translators keyed by priority.
*
* @var array
- * Array of \Drupal\Core\Translation\Translator\TranslatorInterface objects
+ * Array of \Drupal\Core\StringTranslation\Translator\TranslatorInterface objects
*/
protected $translators = array();
@@ -77,12 +77,12 @@ class TranslationManager implements TranslationInterface, TranslatorInterface {
/**
* 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.
* @param int $priority
* The priority of the logger being added.
*
- * @return \Drupal\Core\Translation\TranslationManager
+ * @return \Drupal\Core\StringTranslation\TranslationManager
* The called object.
*/
public function addTranslator(TranslatorInterface $translator, $priority = 0) {
diff --git a/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php b/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
index 7700611..fcc1ddf 100644
--- a/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
+++ b/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
@@ -38,7 +38,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
/**
* The translation service.
*
- * @var \Drupal\Core\Translation\Translator\TranslatorInterface
+ * @var \Drupal\Core\StringTranslation\Translator\TranslatorInterface;
*/
protected $translation;
@@ -56,7 +56,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
* The language manager service.
* @param \Drupal\language\LanguageNegotiatorInterface
* The language negotiator.
- * @param \Drupal\Core\Translation\Translator\TranslatorInterface $translation
+ * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translation;
* The translation service.
* @param \Drupal\Core\Session\AccountInterface $current_user
* The current active user.