Created
May 26, 2015 15:12
-
-
Save fernandez14/f7967246361a7e09fa49 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 | |
/** | |
* @Get("/{id:[0-9]+}") | |
* @AclAllow("scopes"={"basic"}) | |
*/ | |
public function getAction($id) | |
{ | |
Filter::on($this, __FUNCTION__, func_get_args(), function($chain) { | |
$service = Services::getWithVenue($id); | |
return ['service' => $service]; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment