inklabs / kommerce-core

PHP shopping cart core platform
https://kommerce-laravel-demo.jamieisaacs.com/
Apache License 2.0
65 stars 14 forks source link

Query refactor #36

Closed pdt256 closed 8 years ago

pdt256 commented 8 years ago

The new dispatch method for queries:

$request = new GetCouponRequest($couponId);
$response = new GetCouponResponse();
$this->dispatchQuery(new GetCouponQuery($request, $response));

// Send data to the view:
$this->data['coupon'] = $response->getCouponDTO();