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-sales
Controller
Order
Plugin
Authentication.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Sales\Controller\Order\Plugin
;
8
9
use
Magento\Framework\App\RequestInterface
;
10
11
class
Authentication
12
{
16
protected
$customerUrl
;
17
21
protected
$customerSession
;
22
27
public
function
__construct
(
28
\
Magento
\Customer\Model\Url
$customerUrl
,
29
\
Magento
\Customer\Model\Session
$customerSession
30
) {
31
$this->customerUrl =
$customerUrl
;
32
$this->customerSession =
$customerSession
;
33
}
34
43
public
function
beforeDispatch
(\
Magento
\Framework\
App
\
ActionInterface
$subject,
RequestInterface
$request
)
44
{
45
$loginUrl = $this->customerUrl->getLoginUrl();
46
47
if
(!$this->customerSession->authenticate($loginUrl)) {
48
$subject->getActionFlag()->set(
''
, $subject::FLAG_NO_DISPATCH,
true
);
49
}
50
}
51
}
Magento\Framework\App
Magento\Sales\Controller\Order\Plugin\Authentication
Definition:
Authentication.php:11
Magento\Sales\Controller\Order\Plugin
Definition:
Authentication.php:7
Magento\Sales\Controller\Order\Plugin\Authentication\beforeDispatch
beforeDispatch(\Magento\Framework\App\ActionInterface $subject, RequestInterface $request)
Definition:
Authentication.php:43
Magento\Framework\App\RequestInterface
Definition:
RequestInterface.php:14
Magento\Sales\Controller\Order\Plugin\Authentication\$customerSession
$customerSession
Definition:
Authentication.php:21
Magento\Framework\App\ActionInterface
Definition:
ActionInterface.php:14
Magento
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22
Magento\Sales\Controller\Order\Plugin\Authentication\$customerUrl
$customerUrl
Definition:
Authentication.php:16
Magento\Sales\Controller\Order\Plugin\Authentication\__construct
__construct(\Magento\Customer\Model\Url $customerUrl, \Magento\Customer\Model\Session $customerSession)
Definition:
Authentication.php:27