Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/motivation
We are creating a context object in #2803221: Create context value object for price resolvers and availability checkers, and the CountryContext and LocaleContext are not necessarily commerce contexts.
Proposed resolution
- Rename CountryContext to CurrentCountry
- Rename CountryContextInterface to CurrentCountryInterface
- Rename commerce.country_context service to commerce.current_country
- Rename LocaleContext to CurrentLocale
- Rename LocaleContextInterface to CurrentLocaleInterface
- Rename commerce.locale_context to commerce.current_locale
Remaining tasks
- Patch
- Passing tests
- Change record
Comments
Comment #2
steveoliver CreditAttribution: steveoliver commentedComment #3
steveoliver CreditAttribution: steveoliver commentedhttps://github.com/drupalcommerce/commerce/pull/546 needs review after it passes.
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedComment #6
bojanz CreditAttribution: bojanz at Centarro commentedBoom!