SweetGallery rest backend based on Symfony 2