Class ContextPlugin
Definition at line 19 of file ContextPlugin.php.
◆ __construct()
__construct |
( |
Session |
$customerSession, |
|
|
HttpContext |
$httpContext |
|
) |
| |
◆ beforeDispatch()
Set customer group and customer session id to HTTP context
- Parameters
-
AbstractAction | $subject | |
RequestInterface | $request | |
- Returns
- void @SuppressWarnings(PHPMD.UnusedFormalParameter)
Definition at line 49 of file ContextPlugin.php.
51 $this->httpContext->setValue(
53 $this->customerSession->getCustomerGroupId(),
56 $this->httpContext->setValue(
58 $this->customerSession->isLoggedIn(),
◆ $customerSession
◆ $httpContext
The documentation for this class was generated from the following file: