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:
language_manager:
class: Drupal\Core\Language\LanguageManager
arguments: ['@language.default']
language.current_language_context:
class: Drupal\Core\Language\ContextProvider\CurrentLanguageContext
arguments: ['@language_manager']
tags:
- { name: 'context_provider' }
language.default:
class: Drupal\Core\Language\LanguageDefault
arguments: ['%language.default_values%']
......
......@@ -2,10 +2,10 @@
/**
* @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\Language\LanguageManagerInterface;
......
......@@ -24,8 +24,3 @@ services:
tags:
- { name: paramconverter }
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