Honours the 'Accept' header when authenticating users in Symfony 2