Switched to FOSRestBundle to handle API calls