I wonder maybe it is possible to add Link annotation to basic set. For example, if I want to use LINK method I can configure route through yml, but not through annotation. It's will be useful to use something like @Route\Link. I'm talking about this kind of usage - http://williamdurand.fr/2012/08/02/rest-apis-with-symfony2-the-right-way/#the_friendship_algorithm
Ship it :)
you can already, as there is a generic @Rest\Route() allowing to set any method (the other ones are just shortcuts for it setting the _method requirement) :)
But I c this in Route annotation class:
public function __construct(array $data)
$requirements = $this->getRequirements();
$requirements['_method'] = $this->getMethod();
public function getMethod()
So, as I understand, no matter which method I set it Route(...) requirements parameter it will ignore it. And as result I will get route with GET method required or I missed something...
Hmm, this also means it is impossible to allow several methods for a route (except by allowing all of them). this looks bad.
hmm .. i am not sure about the intention of that class .. @everzet was it intended to be abstract?
@lsmith77 yup, it should've been abstract.