Permalink
Browse files

added info how to expose route defined by annotations

  • Loading branch information...
1 parent d0d9d1b commit d4f0e0f87fa8a518a3ffa3c8adc6001402444341 @wodor wodor committed Jan 27, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 Resources/doc/README.markdown
@@ -66,6 +66,15 @@ Imagine some route definitions:
options:
expose: true
+Or with annotations:
+
+ # src/Acme/DemoBundle/Controller/DefaultController.php
+ /**
+ * @Route ("/foo/{id}/bar", name="my_route_to_expose", options={"expose"=true}))
+ */
+ public function exposedAction($foo)
+
+
You can do:
Routing.generate('my_route_to_expose', { id: 10 });

0 comments on commit d4f0e0f

Please sign in to comment.