Model
PathConfig
Magento\Store\Model\PathConfig
What it does
The PathConfig class manages URL path configurations and security settings for Magento 2 stores.
Developers use this class to determine if a URL should use HTTPS, get the current secure URL for a request, or retrieve the default frontend path.
It's commonly used during request routing to ensure proper URL security and redirects based on store configuration.
Public Methods
- getCurrentSecureUrl()
- shouldBeSecure()
- getDefaultPath()