Skip to content

Instantly share code, notes, and snippets.

@fubhy
Created September 25, 2013 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fubhy/6698939 to your computer and use it in GitHub Desktop.
Save fubhy/6698939 to your computer and use it in GitHub Desktop.
/**
* @Route("/foo/{bar}/{baz}")
*/
class SomePage extends ControllerBase {
/**
* @Content
*/
public function content(NodeInterface $bar, UserInterface $baz) {
return 'Blaaah';
}
/**
* @Title
*/
public function title(NodeInterface $bar, UserInterface $baz) {
return 'Meeeh';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment