The Magento_Store module is a foundational module that manages the multi-store hierarchy
consisting of Websites, Store Groups (Stores), and Store Views.
This three-tier structure enables Magento to power complex multi-brand, multi-region, and multi-language
ecommerce operations from a single installation.
As a zero-dependency foundational module, nearly every other Magento module depends on
Magento_Store for scope configuration, currency/locale resolution, and URL generation. The module provides
the StoreManagerInterface - one of the most frequently injected services across the entire platform.
Key responsibilities include: store resolution from URL/cookie/request parameters, scope-based configuration
retrieval, single-store mode detection, and the complete repository pattern for managing store entities.
Key Components
StoreManagerInterface
Central service for store/website/group access. Most injected interface in Magento.
StoreResolver
Resolves current store from URL path, GET params, or cookies.
ScopeInterface
Defines scope type constants: SCOPE_STORE, SCOPE_WEBSITE, SCOPE_GROUP.
StoreRepository
CRUD operations for store views with caching and active store filtering.
WebsiteRepository
CRUD operations for websites including default website resolution.
GroupRepository
CRUD operations for store groups with root category assignment.
StoreCookieManager
Manages store code persistence in cookies for store switching.
StoreConfigManager
Retrieves store configuration data for REST API responses.
App\Config\Source\RuntimeConfigSource
Runtime configuration source for dynamic store config values.