Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-review
Controller
Customer.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Review\Controller
;
7
8
use
Magento\Framework\App\Action\Action
;
9
use
Magento\Framework\App\Action\Context
;
10
use
Magento\Customer\Model\Session
;
11
use
Magento\Framework\App\RequestInterface
;
12
16
abstract
class
Customer
extends
Action
17
{
23
protected
$customerSession
;
24
29
public
function
__construct
(
30
Context
$context,
31
Session
$customerSession
32
) {
33
$this->customerSession =
$customerSession
;
34
parent::__construct($context);
35
}
36
43
public
function
dispatch
(
RequestInterface
$request
)
44
{
45
if
(!$this->customerSession->authenticate()) {
46
$this->_actionFlag->set(
''
, self::FLAG_NO_DISPATCH,
true
);
47
}
48
return
parent::dispatch(
$request
);
49
}
50
}
Magento\Customer\Model\Session
Definition:
Storage.php:8
Magento\Review\Controller\Customer\dispatch
dispatch(RequestInterface $request)
Definition:
Customer.php:43
Magento\Customer\Model\Session
Definition:
Session.php:22
Magento\Review\Controller\Customer\__construct
__construct(Context $context, Session $customerSession)
Definition:
Customer.php:29
Magento\Framework\App\RequestInterface
Definition:
RequestInterface.php:14
Magento\Review\Controller
Definition:
ProductTest.php:6
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22
Magento\Review\Controller\Customer
Definition:
Customer.php:16
Magento\Framework\App\Action\Context
Definition:
Context.php:24
Magento\Review\Controller\Customer\$customerSession
$customerSession
Definition:
Customer.php:23
Magento\Framework\App\Action\Action
Definition:
Action.php:25