Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?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