Closed duncanmcclean closed 1 year ago
This pull request introduces a Runway class inside Simple Commerce to simplify calls to the customer/order resources.
Runway
For example, previously to get the Order resource we had to do:
$orderModelClass = SimpleCommerce::orderDriver()['model']; $runwayResource = \DoubleThreeDigital\Runway\Runway::findResourceByModel(new $orderModelClass);
But now it's just:
$runwayResource = Runway::orderModel();
This isn't much of a end-user improvement but should help simplify some of the code in SC.
Released as part of v5.0.0.
This pull request introduces a
Runway
class inside Simple Commerce to simplify calls to the customer/order resources.For example, previously to get the Order resource we had to do:
But now it's just:
This isn't much of a end-user improvement but should help simplify some of the code in SC.