Skip to content

Instantly share code, notes, and snippets.

@rizqidjamaluddin
Last active August 29, 2015 14:11
Show Gist options
  • Save rizqidjamaluddin/313c97a5849f888ca64d to your computer and use it in GitHub Desktop.
Save rizqidjamaluddin/313c97a5849f888ca64d to your computer and use it in GitHub Desktop.
<?php
class CakeController {
public function __construct (CakeService $cakeService) {
$this->cakeService = $cakeService;
}
public function createOrder() {
$customer = Input::get('customer');
$flavor = Input::get('flavor');
return $this->cakeService->makeOrder($customer, $flavor);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment