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
Model
Order
OrderCustomerDelegate.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Sales\Model\Order
;
9
10
use
Magento\Customer\Api\AccountDelegationInterface
;
11
use
Magento\Framework\Controller\Result\Redirect
;
12
use
Magento\Sales\Api\OrderCustomerDelegateInterface
;
13
use
Magento\Sales\Observer\AssignOrderToCustomerObserver
;
14
20
class
OrderCustomerDelegate
implements
OrderCustomerDelegateInterface
21
{
25
private
$customerExtractor;
26
30
private
$delegateService;
31
36
public
function
__construct
(
37
OrderCustomerExtractor
$customerExtractor,
38
AccountDelegationInterface
$delegateService
39
) {
40
$this->customerExtractor = $customerExtractor;
41
$this->delegateService = $delegateService;
42
}
43
47
public
function
delegateNew
(
int
$orderId):
Redirect
48
{
49
return
$this->delegateService->createRedirectForNew(
50
$this->customerExtractor->extract($orderId),
51
[
'__sales_assign_order_id'
=> $orderId]
52
);
53
}
54
}
Magento\Sales\Model\Order
Magento\Sales\Model\Order\OrderCustomerDelegate\delegateNew
delegateNew(int $orderId)
Definition:
OrderCustomerDelegate.php:47
Magento\Framework\Controller\Result\Redirect
Definition:
Redirect.php:22
Magento\Sales\Api\OrderCustomerDelegateInterface
Definition:
OrderCustomerDelegateInterface.php:15
Magento\Sales\Observer\AssignOrderToCustomerObserver
Definition:
AssignOrderToCustomerObserver.php:18
Magento\Sales\Model\Order\OrderCustomerDelegate\__construct
__construct(OrderCustomerExtractor $customerExtractor, AccountDelegationInterface $delegateService)
Definition:
OrderCustomerDelegate.php:36
Magento\Sales\Model\Order\OrderCustomerExtractor
Definition:
OrderCustomerExtractor.php:24
Magento\Customer\Api\AccountDelegationInterface
Definition:
AccountDelegationInterface.php:16
Magento\Sales\Model\Order\OrderCustomerDelegate
Definition:
OrderCustomerDelegate.php:20