Skip to content

Instantly share code, notes, and snippets.

@klaascuvelier
Last active December 19, 2015 21:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save klaascuvelier/6018279 to your computer and use it in GitHub Desktop.
<?php
class AssetController {
/**
* Get assets via some params
* @param string $type
* @param integer $from
* @param integer $to
* @return array
*
* @Route("assets/{type}", name="acme_assets_get_all")
* @Route("assets/{type}/from/{from}/to/{to}", name="acme_assets_get_from_to")
*/
public function getAssetsAction($type, $from = 0, $to = 0) {
// fetch me some assets
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment