Commit c78f1dac authored by alexpott's avatar alexpott

Issue #2529616 by andypost: Move CurrentLanguageContext to Core\Language\ContextProvider

parent fea90fbd
...@@ -622,6 +622,11 @@ services: ...@@ -622,6 +622,11 @@ services:
language_manager: language_manager:
class: Drupal\Core\Language\LanguageManager class: Drupal\Core\Language\LanguageManager
arguments: ['@language.default'] arguments: ['@language.default']
language.current_language_context:
class: Drupal\Core\Language\ContextProvider\CurrentLanguageContext
arguments: ['@language_manager']
tags:
- { name: 'context_provider' }
language.default: language.default:
class: Drupal\Core\Language\LanguageDefault class: Drupal\Core\Language\LanguageDefault
arguments: ['%language.default_values%'] arguments: ['%language.default_values%']
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
/** /**
* @file * @file
* Contains \Drupal\language\ContextProvider\CurrentLanguageContext. * Contains \Drupal\Core\Language\ContextProvider\CurrentLanguageContext.
*/ */
namespace Drupal\language\ContextProvider; namespace Drupal\Core\Language\ContextProvider;
use Drupal\Core\Cache\CacheableMetadata; use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Language\LanguageManagerInterface; use Drupal\Core\Language\LanguageManagerInterface;
......
...@@ -24,8 +24,3 @@ services: ...@@ -24,8 +24,3 @@ services:
tags: tags:
- { name: paramconverter } - { name: paramconverter }
lazy: true lazy: true
language.current_language_context:
class: Drupal\language\ContextProvider\CurrentLanguageContext
arguments: ['@language_manager']
tags:
- { name: 'context_provider' }
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