At the moment, LicenseOrderSyncSubscriber has the code to create a new license entity from an order item.

As there is actually a fair amount of code here for things like copying values and so on, I think this should be moved to a method on the license storage class, analogous to create(), eg createFromPurchasableEntity().

Comments

joachim created an issue. See original summary.

joachim’s picture

Issue summary: View changes
joachim’s picture

  • joachim committed 463c80b on 8.x-2.x
    Issue #2903310 by joachim: Moved license creation from a purchased...
joachim’s picture

Status: Needs review » Fixed

Committed, with a small fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.