Skip to content

Instantly share code, notes, and snippets.

@fernandez14
Created May 26, 2015 15:12
Show Gist options
  • Save fernandez14/f7967246361a7e09fa49 to your computer and use it in GitHub Desktop.
Save fernandez14/f7967246361a7e09fa49 to your computer and use it in GitHub Desktop.
<?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