Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AccountDelegation.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
14 
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(
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
Definition: customers.php:11
__construct(RedirectFactory $redirectFactory, Storage $storage)
createRedirectForNew(CustomerInterface $customer, array $mixedData=null)