Commit 2ded87b1 authored by catch's avatar catch
Browse files

Issue #2659594 by Chi: Theme manager: remove unused request stack dependency

parent aab13bae
...@@ -1364,7 +1364,7 @@ services: ...@@ -1364,7 +1364,7 @@ services:
scope: prototype scope: prototype
theme.manager: theme.manager:
class: Drupal\Core\Theme\ThemeManager class: Drupal\Core\Theme\ThemeManager
arguments: ['@app.root', '@theme.negotiator', '@theme.initialization', '@request_stack', '@module_handler'] arguments: ['@app.root', '@theme.negotiator', '@theme.initialization', '@module_handler']
calls: calls:
- [setThemeRegistry, ['@theme.registry']] - [setThemeRegistry, ['@theme.registry']]
theme.initialization: theme.initialization:
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
use Drupal\Core\Render\Markup; use Drupal\Core\Render\Markup;
use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\StackedRouteMatchInterface; use Drupal\Core\Routing\StackedRouteMatchInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Template\Attribute; use Drupal\Core\Template\Attribute;
...@@ -48,11 +47,6 @@ class ThemeManager implements ThemeManagerInterface { ...@@ -48,11 +47,6 @@ class ThemeManager implements ThemeManagerInterface {
*/ */
protected $themeInitialization; protected $themeInitialization;
/**
* @var \Symfony\Component\HttpFoundation\RequestStack
*/
protected $requestStack;
/** /**
* The app root. * The app root.
* *
...@@ -69,15 +63,12 @@ class ThemeManager implements ThemeManagerInterface { ...@@ -69,15 +63,12 @@ class ThemeManager implements ThemeManagerInterface {
* The theme negotiator. * The theme negotiator.
* @param \Drupal\Core\Theme\ThemeInitializationInterface $theme_initialization * @param \Drupal\Core\Theme\ThemeInitializationInterface $theme_initialization
* The theme initialization. * The theme initialization.
* @param \Symfony\Component\HttpFoundation\RequestStack $request_stack
* The request stack.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
*/ */
public function __construct($root, ThemeNegotiatorInterface $theme_negotiator, ThemeInitializationInterface $theme_initialization, RequestStack $request_stack, ModuleHandlerInterface $module_handler) { public function __construct($root, ThemeNegotiatorInterface $theme_negotiator, ThemeInitializationInterface $theme_initialization, ModuleHandlerInterface $module_handler) {
$this->root = $root; $this->root = $root;
$this->themeNegotiator = $theme_negotiator; $this->themeNegotiator = $theme_negotiator;
$this->themeInitialization = $theme_initialization; $this->themeInitialization = $theme_initialization;
$this->requestStack = $request_stack;
$this->moduleHandler = $module_handler; $this->moduleHandler = $module_handler;
} }
......
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