Permalink
Browse files

Adding the "link" method to the route generator.

You may now declare linkAction() in your controller when using an autogenerated route from FosRestBundle.
  • Loading branch information...
1 parent 7da124c commit 0326ff4c3fb822891911b460f3b4acf3dcbb8a55 @OwlyCode OwlyCode committed Nov 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Routing/Loader/Reader/RestActionReader.php
@@ -33,7 +33,7 @@ class RestActionReader
private $namePrefix;
private $parents = array();
- private $availableHTTPMethods = array('get', 'post', 'put', 'patch', 'delete', 'head', 'options');
+ private $availableHTTPMethods = array('get', 'post', 'put', 'patch', 'delete', 'link', 'head', 'options');
private $availableConventionalActions = array('new', 'edit', 'remove');
/**

0 comments on commit 0326ff4

Please sign in to comment.