Commit ad7f95d7 authored by joshtaylor's avatar joshtaylor Committed by bojanz

Fix the country cache context commit.

parent c9898170
......@@ -33,7 +33,8 @@ services:
class: Drupal\commerce\AvailabilityManager
tags:
- { name: service_collector, tag: commerce.availability_checker, call: addChecker }
cache_context.commerce.country
cache_context.country:
class: Drupal\commerce\Cache\Context\CountryCacheContext
arguments: ['@commerce.country_context']
tags:
......
......@@ -10,7 +10,7 @@ namespace Drupal\commerce\Cache\Context;
use Drupal\commerce\CountryContext;
/**
* Defines the CountryCacheContext object, for "per country" caching.
* Defines the country cache context, for "per country" caching.
*
* Cache context ID: 'country'.
*/
......@@ -18,27 +18,27 @@ class CountryCacheContext implements CacheContextInterface {
/**
* The country context.
*
*
* @var \Drupal\commerce\CountryContext
*/
protected $countryContext;
/**
* Constructs a new CountryCacheContext object.
*
*
* @param \Drupal\commerce\CountryContext $context
* The country context.
*/
*/
public function __construct(CountryContext $context) {
$this->countryContext = $context;
}
}
/**
* {@inheritdoc}
*/
public static function getLabel() {
return t('Country');
}
}
/**
* {@inheritdoc}
......
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