Ticket #2401 (new defect)
Refactor Order factory pattern to be consistent with Payment and Shipping classes
| Reported by: | sharvey | Owned by: | sharvey |
|---|---|---|---|
| Priority: | minor | Milestone: | E-Commerce 0.6.0 |
| Component: | Modules - ecommerce | Version: | |
| Severity: | high effort / impact | Keywords: | |
| Cc: | Hours: |
Description
Order still uses a factory concept of Order::create() which is redundant, and makes no sense when the Payment and ShippingCalculator? classes use a different system.
Object::create('Order') should be used instead, like the aforementioned classes, which means we can use Object::useCustomClass() in our _config.php files. This means a net loss of code in Order, too.
Change History
Note: See
TracTickets for help on using
tickets.
