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-customer
Model
Delegation
AccountDelegation.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Customer\Model\Delegation
;
9
10
use
Magento\Customer\Api\Data\CustomerInterface
;
11
use
Magento\Customer\Api\AccountDelegationInterface
;
12
use
Magento\Framework\Controller\Result\Redirect
;
13
use
Magento\Framework\Controller\Result\RedirectFactory
;
14
18
class
AccountDelegation
implements
AccountDelegationInterface
19
{
23
private
$redirectFactory;
24
28
private
$storage;
29
34
public
function
__construct
(
35
RedirectFactory
$redirectFactory,
36
Storage
$storage
37
) {
38
$this->redirectFactory = $redirectFactory;
39
$this->storage = $storage;
40
}
41
45
public
function
createRedirectForNew
(
46
CustomerInterface
$customer
,
47
array $mixedData =
null
48
):
Redirect
{
49
$this->storage->storeNewOperation(
$customer
, $mixedData);
50
51
return
$this->redirectFactory->create()->
setPath
(
'customer/account/create'
);
52
}
53
}
$customer
$customer
Definition:
customers.php:11
Magento\Framework\Controller\Result\Redirect
Definition:
Redirect.php:22
Magento\Framework\Controller\Result\Redirect\setPath
setPath($path, array $params=[])
Definition:
Redirect.php:94
Magento\Customer\Model\Delegation\AccountDelegation\__construct
__construct(RedirectFactory $redirectFactory, Storage $storage)
Definition:
AccountDelegation.php:34
Magento\Framework\Controller\Result\RedirectFactory
Definition:
RedirectFactory.php:14
Magento\Customer\Model\Delegation\Storage
Definition:
Storage.php:27
Magento\Customer\Model\Delegation
Definition:
AccountDelegation.php:8
Magento\Customer\Model\Delegation\AccountDelegation
Definition:
AccountDelegation.php:18
Magento\Customer\Api\Data\CustomerInterface
Definition:
CustomerInterface.php:13
Magento\Customer\Model\Delegation\AccountDelegation\createRedirectForNew
createRedirectForNew(CustomerInterface $customer, array $mixedData=null)
Definition:
AccountDelegation.php:45
Magento\Customer\Api\AccountDelegationInterface
Definition:
AccountDelegationInterface.php:16