Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Should use ApiPlatform's CustomerProvider #162

Description

@kayue

I noticed AdminOrderCreationPlugin has its own CustomerProvider

public function provideNewCustomer(string $email): CustomerInterface
{
/** @var CustomerInterface $customer */
$customer = $this->customerFactory->createNew();
$customer->setEmail($email);
$this->customerRepository->add($customer);
return $customer;
}

It should use the one from \Sylius\Bundle\ApiBundle\Provider\CustomerProviderInterface so that it can support Sylius Plus properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions