diff -u b/core/modules/system/lib/Drupal/system/Controller/ThemeListingController.php b/core/modules/system/lib/Drupal/system/Controller/ThemeListingController.php --- b/core/modules/system/lib/Drupal/system/Controller/ThemeListingController.php +++ b/core/modules/system/lib/Drupal/system/Controller/ThemeListingController.php @@ -10,7 +10,7 @@ use Drupal\Core\Controller\ControllerInterface; use Drupal\Core\Config\Config; use Drupal\Core\Extension\ModuleHandlerInterface; -use Drupal\Core\StringTranslation\TranslationManager; +use Drupal\Core\StringTranslation\TranslationInterface; use Drupal\Core\Access\CsrfTokenGenerator; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Request; @@ -37,7 +37,7 @@ /** * The translation service. * - * @var \Drupal\Core\StringTranslation\TranslationManager + * @var \Drupal\Core\StringTranslation\TranslationInterface */ protected $translation; @@ -55,12 +55,12 @@ * The system.theme config object. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler service. - * @param \Drupal\Core\StringTranslation\TranslationManager $translation + * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The translation manager service. * @param \Drupal\Core\Access\CsrfTokenGenerator * The Csrf token generator. */ - public function __construct(Config $config, ModuleHandlerInterface $module_handler, TranslationManager $translation, CsrfTokenGenerator $token_generator) { + public function __construct(Config $config, ModuleHandlerInterface $module_handler, TranslationInterface $translation, CsrfTokenGenerator $token_generator) { $this->config = $config; $this->moduleHandler = $module_handler; $this->translation = $translation;