AccountDelegationInterface.php 789 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Customer\Api;
  8. use Magento\Customer\Api\Data\CustomerInterface;
  9. use Magento\Framework\Controller\Result\Redirect;
  10. /**
  11. * Delegating account actions from outside of customer module.
  12. */
  13. interface AccountDelegationInterface
  14. {
  15. /**
  16. * Create redirect to default new account form.
  17. *
  18. * @param CustomerInterface $customer Pre-filled customer data.
  19. * @param array|null $mixedData Add this data to new-customer event
  20. * if the new customer is created.
  21. *
  22. * @return Redirect
  23. */
  24. public function createRedirectForNew(
  25. CustomerInterface $customer,
  26. array $mixedData = null
  27. ): Redirect;
  28. }