diff --git c/core/modules/system/lib/Drupal/system/Controller/ThemeListingController.php w/core/modules/system/lib/Drupal/system/Controller/ThemeListingController.php index 1753596..7b637ec 100644 --- c/core/modules/system/lib/Drupal/system/Controller/ThemeListingController.php +++ w/core/modules/system/lib/Drupal/system/Controller/ThemeListingController.php @@ -9,7 +9,6 @@ use Drupal\Core\Controller\ControllerBase; use Drupal\Core\DependencyInjection\ContainerInjectionInterface; -use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Access\CsrfTokenGenerator; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Request; @@ -20,13 +19,6 @@ class ThemeListingController extends ControllerBase implements ContainerInjectionInterface { /** - * The config factory. - * - * @var \Drupal\Core\Config\ConfigFactory - */ - protected $configFactory; - - /** * The token generator manager service. * * @var \Drupal\Core\Access\CsrfTokenGenerator @@ -36,13 +28,10 @@ class ThemeListingController extends ControllerBase implements ContainerInjectio /** * Constructs a ThemeListingController object. * - * @param \Drupal\Core\Config\ConfigFactory $config_factory - * The config factory. * @param \Drupal\Core\Access\CsrfTokenGenerator * The Csrf token generator. */ - public function __construct(ConfigFactory $config_factory, CsrfTokenGenerator $token_generator) { - $this->configFactory = $config_factory; + public function __construct(CsrfTokenGenerator $token_generator) { $this->tokenGenerator = $token_generator; } @@ -51,7 +40,6 @@ public function __construct(ConfigFactory $config_factory, CsrfTokenGenerator $t */ public static function create(ContainerInterface $container) { return new static( - $container->get('config.factory'), $container->get('csrf_token') ); } @@ -63,7 +51,7 @@ public static function create(ContainerInterface $container) { * A HTML string of the theme listing page. */ public function listingPage() { - $config = $this->configFactory->get('system.theme'); + $config = $this->config('system.theme'); // Get current list of themes. $themes = system_rebuild_theme_data(); uasort($themes, 'system_sort_modules_by_info_name');