ProductReaderInterface
Magento\Quote\Model\Cart\ProductReaderInterface
What it does
This interface defines a contract for loading and retrieving products in the shopping cart context.
Developers use this when they need to fetch product information by SKU within quote/cart operations, such as validating products before adding them to cart or retrieving product details for cart items.
It provides a centralized way to load multiple products at once for a specific store and then retrieve individual products by their SKU.
Public Methods
- loadProducts()
- getProductBySku()