Symfony2 application to handle RestApi