Add Symfony 2.6 compatiblity

If you use facebook or google resource owner, on Symfony 2.6 it was fail