6 declare(strict_types=1);
18 private $storePathInfoValidator;
31 \
Magento\Framework\
App\Config\ReinitableConfigInterface $config
33 $this->storePathInfoValidator = $storePathInfoValidator;
53 $pathInfo = $this->trimStoreCodeFromPathInfo($pathInfo,
$storeCode);
70 private function trimStoreCodeFromPathInfo(
string $pathInfo,
string $storeCode) : ?string
73 $pathInfo = substr($pathInfo, strlen(
$storeCode)+1);
75 return empty($pathInfo) ?
'/' : $pathInfo;
const XML_PATH_STORE_IN_URL
__construct(\Magento\Store\App\Request\StorePathInfoValidator $storePathInfoValidator, \Magento\Framework\App\Config\ReinitableConfigInterface $config)
process(\Magento\Framework\App\RequestInterface $request, $pathInfo)