Last active
August 29, 2015 14:11
-
-
Save rizqidjamaluddin/313c97a5849f888ca64d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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