Issue #2239425 by cs_shadow, Mixologic, JacobSanford | penyaskito: Invalid TranslatorInterface type hinting in LanguageRequestSubscriber.

8.0.x
Alex Pott 2014-06-11 14:29:22 +01:00
parent 406da3196a
commit 7b8d4375a6
2 changed files with 5 additions and 5 deletions

View File

@ -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 @@ class TranslationManager implements TranslationInterface, TranslatorInterface {
/** /**
* 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) {

View File

@ -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 {
* 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.