Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public function __construct(
* @param $request
* @param string $pathInfo
* @return string
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function afterGetValidStoreCode(
\Magento\Store\App\Request\StorePathInfoValidator $subject,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function __construct(
* @param $redirectUrl
* @return array
* @throws \Magento\Framework\Exception\LocalizedException
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function beforeSwitch(
\Magento\UrlRewrite\Model\StoreSwitcher\RewriteUrl $subject,
Expand Down
14 changes: 11 additions & 3 deletions Plugin/Store/App/Request/PathInfoProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class PathInfoProcessor
* @var \Experius\MultipleWebsiteStoreCodeUrl\Helper\Settings
*/
private $settings;

/**
* @var Data
* @var Data
*/
protected $data;

Expand All @@ -60,8 +60,16 @@ public function __construct(
$this->data = $data;
}

/**
* @param \Magento\Store\App\Request\PathInfoProcessor $subject
* @param callable $proceed
* @param RequestInterface $request
* @param $pathInfo
* @return mixed
* @throws \Magento\Framework\Exception\LocalizedException
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function aroundProcess(
/** @noinspection PhpUnusedParameterInspection */
\Magento\Store\App\Request\PathInfoProcessor $subject,
callable $proceed,
RequestInterface $request,
Expand Down