FriendsOfSymfony/FOSRestBundle — Issue #138: Multiple RESTful controller routes
Author: ferrangimenezz
Created: 2011-10-10 18:49:37+00:00
State: open

Hi everyone,

I'm encountering a problem when trying to define multiple controller routes and I can't find what I'm doing wrong.. I'm going in circles and can't get it work.
I've some resources not directly related, "Company" and "Users", and I want to make them accessible individually, but don't know how to do it properly. If I do it like in the README:

#AcroyKycBundle/Resources/config/routing.yml
empresa_rest:
type: rest
resource: Acroy\KycBundle\Controller\EmpresaController

usuario_rest:
type: rest
resource: Acroy\KycBundle\Controller\UsuarioController

I get the following error:

Fatal error: Label 'not_update' already defined in /Users/Ferran/Work/KYC/WWW/KYC_S4/app/cache/dev/appdevUrlMatcher.php on line 1938

Can anybody help me?
Thanks a lot in advance!